Download Crypto Currencies Data
Download Crypto Currencies Data¶
dccd downloads crypto-currency data (OHLCV, trades, order book) from
7 exchanges and stores it as nanosecond-precision Parquet — backfill history or
stream live, from Python, a CLI, or a web UI. No API key required.
pip install dccd
import asyncio
from dccd import Client
async def main():
async with Client() as c:
await c.backfill("binance", "BTC/USDT", "ohlc", span=3600, start="2024-01-01")
print(c.read("binance", "BTC/USDT", "ohlc", span=3600).tail())
asyncio.run(main()) # → a Polars DataFrame of hourly candles
New here? Start with Your first backfill.
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¶
You pick a data type (OHLC · trades · order book) and an operation — backfill (download history) or stream (collect live). Each cell lists the data types an exchange supports for that operation.
Exchange |
Backfill (history) |
Stream (live) |
|---|---|---|
Binance |
OHLC · trades · book |
OHLC · trades · book |
Coinbase |
OHLC · book · trades [1] |
trades |
Kraken |
OHLC [2] · trades · book |
OHLC · trades · book |
Bybit |
OHLC · book |
OHLC · trades · book |
OKX |
OHLC · trades · book |
OHLC · trades · book |
Bitfinex |
OHLC · trades · book |
OHLC · trades |
BitMEX |
OHLC · trades · book |
OHLC · trades · book |
See Exchanges for per-exchange notes and OHLC field fidelity. Bybit spot has no trade history at all (WS only). All other trade backfills are cursor-paginated and drain the full requested window.