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 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.

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

You pick a data type (OHLC · trades · order book) and an operationbackfill (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.