dccd logo dccd logo

Download Crypto Currencies Data

Download Crypto Currencies Data

Python versions PyPI version PyPI status CI License Documentation Coverage Docstring coverage Downloads

dccd downloads crypto-currency data (OHLCV, trades, order book) from multiple exchanges via REST and WebSocket APIs.

pip install dccd
Python API

Historical REST downloads and real-time WebSocket streams — use dccd directly in your scripts or notebooks.

Quickstart
CLI & Daemon

dccd command line: backfill, stream, start (daemon + web UI), migrate, inventory — driven by a YAML config.

CLI Reference
API Reference

The hexagonal layers — domain, transport, sources, storage, application, interfaces.

API Reference

Key features

  • 7 exchanges — Binance, Coinbase, Kraken, Bybit, OKX, Bitfinex, BitMEX

  • 3 data types — OHLCV candles, trade history, order book snapshots

  • Async-firstasync with Client() as c: await c.backfill(...); httpx + websockets

  • Cursor-paginated trades — backfills drain the full window (no silent loss)

  • Incremental & idempotentstart="last" resumes from the last bar; dedup on the natural key

  • Nanosecond Parquet storage — ns UTC int64, provenance, atomic writes; read back as a polars.DataFrame

  • No API key required — all endpoints used are public

  • Autonomous daemon — YAML config, async scheduler, WebSocket streams, rclone remote sync

Guides

Architecture

The hexagonal layers and how a backfill flows through them.

Architecture
Exchanges

Per-exchange capabilities and OHLC field fidelity.

Exchanges

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.