Backtesting

Buy one archived object over x402 (pay per resource)

One archived Parquet / JSON object for one USDC payment — no key needed.

Flow: call once to get a 402 quoting the price for exactly this object (a missing object is a 404 before any quote, so you can never pay for a file that is not there); sign the amount; call again with x-payment. The response is a pre-signed download URL valid for one hour.

A Pro Plus key gets the same URL free (parity with /archives/download, which lists whole ranges). Prices per data_type are in GET /api/v1/pricing → resources.

get/api/v1/backtesting/archives/purchase

Request

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

Query parameters

data_typestring required

klines, funding, liquidations, hl_liquidations, hl_trade_flow, daily, snapshots, klines_deep, funding_deep

exchangestring

klines / funding / daily / *_deep

symbolstring

klines / funding / liquidations / *_deep

datestring

YYYY-MM-DD for daily-file types

monthstring

YYYY-MM for *_deep monthly files

intervalstring

klines_deep only: 1h, 4h, 1d

bundlestring

daily only: klines or funding

snapshot_typestring

snapshots only: the snapshot data type name

Response

Successful Response

unknown required

Changes

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