Download Crypto Currencies Data
Download Crypto Currencies Data¶
dccd downloads crypto-currency data (OHLCV, trades, order book) from
multiple exchanges via REST and WebSocket APIs.
pip install dccd
Historical REST downloads and real-time WebSocket streams — use
dccd directly in your scripts or notebooks.
dccd command line: backfill, stream, start (daemon +
web UI), migrate, inventory — driven by a YAML config.
The hexagonal layers — domain, transport, sources, storage, application, interfaces.
Key features
7 exchanges — Binance, Coinbase, Kraken, Bybit, OKX, Bitfinex, BitMEX
3 data types — OHLCV candles, trade history, order book snapshots
Async-first —
async with Client() as c: await c.backfill(...); httpx + websocketsCursor-paginated trades — backfills drain the full window (no silent loss)
Incremental & idempotent —
start="last"resumes from the last bar; dedup on the natural keyNanosecond Parquet storage — ns UTC
int64, provenance, atomic writes; read back as apolars.DataFrameNo API key required — all endpoints used are public
Autonomous daemon — YAML config, async scheduler, WebSocket streams, rclone remote sync
Guides
The hexagonal layers and how a backfill flows through them.
Per-exchange capabilities and OHLC field fidelity.
Supported exchanges¶
Exchange |
REST OHLCV |
REST Trades |
REST Order Book |
WS OHLCV |
WS Trades |
WS Order Book |
|---|---|---|---|---|---|---|
Binance |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Coinbase |
✓ |
✓ † |
✓ |
|||
Kraken |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
Bybit |
✓ |
✓ † |
✓ |
✓ |
✓ |
|
OKX |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
Bitfinex |
✓ * |
✓ |
✓ |
|||
Bitmex |
✓ |
✓ |
* Bitfinex WS OHLCV is delivered natively on the candles channel.
† Recent trades only (Coinbase) — no deep historical pagination via the public REST API; a deep request is rejected early rather than silently truncated. Bybit spot has no trade history at all (WS only). All other trade backfills are cursor-paginated and drain the full requested window.