CoinbaseSource

Defined in dccd.sources.coinbase

class CoinbaseSource(http=None)[source]

Bases: OHLCHistory, TradesHistory, OrderBookSnapshotREST, OHLCLive, TradesLive, OrderBookLive

Coinbase 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-BEFORE response 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 the history="recent" capability, enforced by the backfill engine).

render_symbol(s)[source]

Coinbase format: BTC-USD.