Python client for tardis.dev - historical tick-level cryptocurrency market data replay API.
Maintained. Last release 8 months ago, commits in 9 of the last 26 weeks. Weaker on contributor spread.
pip install tardis-clienttardis-client
tardis-client is deprecated and frozen.
This package has been replaced by tardis-dev, the unified Python package for replay, dataset downloads, exchange metadata, and cache helpers.
This 1.4.2 release does not introduce new features. Its purpose is to point existing tardis-client users to the migration path.
Migrate To tardis-dev
Migration notice:
Install commands:
pip uninstall tardis-client
pip install tardis-dev
Old To New
Replay
Old:
from tardis_client import TardisClient, Channel
client = TardisClient(api_key="YOUR_API_KEY")
async for item in client.replay(
exchange="bitmex",
from_date="2019-06-01",
to_date="2019-06-02",
filters=[Channel("trade", ["XBTUSD"])],
):
print(item)
New:
from tardis_dev import Channel, replay
async for item in replay(
exchange="bitmex",
from_date="2019-06-01",
to_date="2019-06-02",
filters=[Channel("trade", ["XBTUSD"])],
api_key="YOUR_API_KEY",
):
print(item)
Cache Cleanup
Old:
from tardis_client import TardisClient
client = TardisClient()
client.clear_cache()
New:
from tardis_dev import clear_cache
clear_cache()
Dataset Downloads
The replacement package also includes dataset downloads directly from the top level:
from tardis_dev import download_datasets
download_datasets(
exchange="deribit",
data_types=["trades"],
symbols=["BTC-PERPETUAL"],
from_date="2024-01-01",
to_date="2024-01-02",
api_key="YOUR_API_KEY",
)