API Reference

Datasets API details

  • all downloadable datasets are gzip compressed

  • historical market data is available in daily intervals (separate file for each day) based on local timestamp (timestamp of message arrival) split by exchange, data type and symbol

  • data for a given day is available on the next day around 6h after 00:00 UTC - exact date until when data is available can be requested via /exchanges/:exchange API call (datasets.exportedUntil), e.g., https://api.tardis.dev/v1/exchanges/ftxarrow-up-right

  • datasets are ordered and split into separate daily files by local_timestamp (timestamp of message arrival time)

  • empty gzip compressed file is being returned in case of no data available for a given day, symbol and data type, e.g., exchange downtime, very low volume currency pairs etc.

  • if timestamp equals local_timestamp, it means the exchange didn't provide a timestamp for the message, e.g., BitMEX order book updates

  • cell in CSV file is empty if there's no value for it, e.g., no trade id if a given exchange doesn't provide one

  • datasets are sourced from Tardis.dev HTTP API, which in turn provides data sourced from exchanges' real-time WebSocket market data feeds (in contrast to REST API endpoints)

  • disconnect events are not included in CSV datasets — they are available via the raw HTTP API (as empty lines) and via normalized replay with withDisconnectMessages enabled

  • dataset download responses for Pro and Business subscriptions (premium network) include an x-md5 header, but for large files uploaded in chunks this value may not match a full-file MD5 checksum — use file size and gzip decompression success as primary integrity checks

  • CSV datasets for a given day are typically available by 06:00 UTC the next day. To check the exact export status for an exchange, use the /exchanges/:exchange API endpoint and poll the datasets.exportedUntil field — do not rely on wall-clock time alone

Download via client libraries

circle-info

Historical datasets for the first day of each month are available to download without API key.

circle-info

If you're running into RuntimeError: This event loop is already running error try solution from https://github.com/ipython/ipython/issues/11338#issuecomment-646539516arrow-up-right (adding nest_asyncio).

Datasets API reference

GET https://datasets.tardis.dev/v1/:exchange/:dataType/:year/:month/:day/:symbol.csv.gz

Returns gzip compressed CSV dataset for given exchange, data type, date (year, month, day) and symbol.

Path Parameters

Name
Type
Description

exchange

string

one of https://api.tardis.dev/v1/exchanges (field id, only exchanges with "supportsDatasets":true)

dataType

string

one of datasets.symbols[].dataTypes values from https://api.tardis.dev/v1/exchanges/:exchange API response

year

string

year in format YYYY (four-digit year)

month

string

month in format MM (two-digit month of the year)

day

string

day in format DD (two-digit day of the month)

symbol

string

one of datasets.symbols[].id values from https://api.tardis.dev/v1/exchanges/:exchange API response, see details below

Headers

Name
Type
Description

Authorization

string

For authenticated requests provide Authorization header with value: 'Bearer YOUR_API_KEY'. Without API key historical datasets for the first day of each month are available to download.

Sample requests

Last updated