CoinbaseSource¶
Defined in dccd.sources.coinbase
- class CoinbaseSource(http=None)[source]
Bases:
OHLCHistory,TradesHistory,OrderBookSnapshotREST,OHLCLive,TradesLive,OrderBookLiveCoinbase adapter.
OHLC: 300 candles per request (mandatory windowing via Paginator). Trades: cursor-based, 100 per page (recent data only in practice).
- async fetch_trades_page(symbol, start_ns, end_ns, limit, cursor=None)[source]
Fetch the most recent trades (
history="recent").Coinbase Exchange paginates trades through
CB-AFTER/CB-BEFOREresponse headers, which the current JSON-only transport does not expose. We therefore return a single recent page and never a cursor — deep history is genuinely unavailable here (declared via thehistory="recent"capability, enforced by the backfill engine).
- render_symbol(s)[source]
Coinbase format: BTC-USD.