API Reference
Endpoints, path parameters, authentication and sample requests
Datasets API details
The Datasets API serves gzip-compressed CSV files by day, exchange, data type and symbol.
all downloadable datasets are gzip-compressed
historical market data is available as one file per day, split by exchange, data type and symbol
data for a given day is available on the next day around 05:00 UTC; use the
/exchanges/:exchangeAPI endpoint anddatasets.exportedUntilto check exact export statusdatasets are ordered and split into daily files by
local_timestampan empty gzip file is returned when no data is available for a given day, symbol and data type, for example during exchange downtime or for very low volume markets
if
timestampequalslocal_timestamp, the exchange did not provide a timestamp for the message, for example BitMEX order book updatesa CSV cell is empty when the exchange does not provide that value, for example a missing trade ID
datasets are exported from Tardis.dev's collected raw WebSocket data, not exchange REST endpoints. The same raw data is available in exchange-native format via the HTTP API
disconnect events are not included in CSV datasets — they are available via the raw HTTP API (as empty lines) and via normalized replay with
withDisconnectMessagesenableddataset download responses include the MD5 of the whole file in the
x-md5header, or inx-amz-meta-md5(orETagwhen that header is missing) after a redirect to storage. The official clients check it with theverifyMd5(Node.js) orverify_md5(Python) optionCSV datasets for a given day are typically available around 05:00 UTC the next day. Each exchange's day is exported for all symbols and data types at once. To check the exact export status for an exchange, poll
datasets.exportedUntilfrom the/exchanges/:exchange/summaryAPI endpoint — do not rely on wall-clock time aloneSee "Data FAQ" regarding potential order book overlaps, non-monotonically increasing exchange timestamps, duplicated trade data, and more
Download via client libraries
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.
A Range header with a single range, for example bytes=0-67108863, returns that part of the file, so a download can resume or run in parallel parts, as the official clients do for large files. A header with several ranges returns the whole file. Every request counts toward the request limits. A redirect to storage is valid for two hours and counts the whole file toward data transfer limits, so request further parts from the redirect URL. HEAD requests return HTTP 404.
Path Parameters
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
Authorization
string
For authenticated requests provide Authorization header with value: 'Bearer YOUR_API_KEY'.
Without a Data API key, historical datasets for the first day of each month are available to download.
symbolvalues for the datasets API are CSV dataset symbols, not raw replay symbols. Usedatasets.symbols[].idfrom/exchanges/:exchangeordatasetIdfrom the Instruments Metadata API when present. If an instrument has nodatasetId, the symbol has not appeared in exported dataset metadata yet. Dataset symbols are uppercase and have/and:replaced with-; they can still contain non-ASCII or reserved URL characters, so URL-encode the symbol path segment when constructing URLs manually. Official clients do this automatically.list of allowed symbols for each exchange can be requested via /exchanges/:exchange API call, e.g., https://api.tardis.dev/v1/exchanges/deribit -
datasets.symbols[].idfield
Sample requests
Last updated
Was this helpful?