Backtesting

Download Archives

Generate pre-signed download URLs for archived files.

Use data_type=daily for consolidated Parquet files (one per exchange) instead of individual per-symbol files.

data_type=klines_deep (with interval 1h/4h/1d) and funding_deep serve the deep monthly cold history — one Parquet per symbol per month, reaching far past the rolling daily files: exchange=binance spot klines back to each market's listing (BTCUSDT to Aug 2017), exchange=hyperliquid 1d to its 2023 launch. For deep tiers start/end match the file's YYYY-MM token, so pass month-granular bounds (e.g. start=2019-01).

get/api/v1/backtesting/archives/download

Request

  • Base URL: https://cryptodataapi.com
  • URL: https://cryptodataapi.com/api/v1/backtesting/archives/download
  • Auth: API key in header X-API-Key

Query parameters

startstring required

Start date (YYYY-MM-DD; YYYY-MM for '*_deep' tiers)

data_typestring

Data type: daily, klines, funding, liquidations, hl_liquidations, hl_trade_flow, snapshots, klines_deep, or funding_deep. Use 'daily' for consolidated bundles; 'hl_liquidations' for the per-event HL liquidation tape; 'hl_trade_flow' for the 1-min HL taker buckets; '*_deep' for deep monthly cold history.

exchangestring

Exchange filter (klines/funding/daily/klines_deep/funding_deep)

symbolstring

Symbol, or snapshot type name for snapshots

endstring

End date (YYYY-MM-DD, defaults to today; YYYY-MM for '*_deep' tiers)

intervalstring

Candle interval for klines_deep only: 1h, 4h, or 1d (ignored for other types).

Response

Successful Response

exchangestring nullable
symbolstring nullable
countinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.