file-csvQuickstart

Get started with downloading CSV datasets via Python, Node.js or cURL

CSV datasets are available via dedicated datasets API that allows downloading tick level incremental order book L2 updates, order book snapshots (top 25 and top 5), trades, options chains, quotes, book tickers, derivative tickers and liquidations data.

  • For ongoing data, CSV datasets for a given day are available on the next day around 06:00 UTC. Historical datasets for the first day of each month are available to download without API key.

  • CSV datasets are exported from exchanges' real-time WebSocket feeds data we collected and also provide via our API as historical data in exchange-native format.

  • Row order in CSV files reflects the original capture order. When multiple events share the same millisecond exchange timestamp, use row position as the tie-breaker — see event ordering FAQ.

Download via client libraries

# pip install tardis-dev
# requires Python >=3.6
from tardis_dev import datasets

datasets.download(
    exchange="deribit",
    data_types=[
        "incremental_book_L2",
        "trades",
        "quotes",
        "derivative_ticker",
        "book_snapshot_25",
        "liquidations"
    ],
    from_date="2019-11-01",
    to_date="2019-11-02",
    symbols=["BTC-PERPETUAL", "ETH-PERPETUAL"],
    api_key="YOUR API KEY (optionally)",
)
tableData Typeschevron-rightcodeAPI Referencechevron-right

How to download all exchange CSV datasets

The examples above download data for specific symbols. To download all available datasets for every instrument of a given exchange, use the exchange metadata API to iterate over all symbols automatically.

Grouped symbols

In addition to standard currency pairs & instrument symbols that can be requested when via CSV datasets API, each exchange has additional special grouped symbols available depending if it supports given market type: SPOT, FUTURES, OPTIONS and PERPETUALS. When such symbol is requested then downloaded file for it has all the data for all instruments belonging for given market type. This is especially useful for options instruments that as specifying each option symbol one by one can be mundane process, using 'OPTIONS' as a symbol gives data for all options available at given time.

Those special symbols are also listed in response to /exchanges/:exchange API call.

Last updated