tardis-dev
Python client for tardis.dev - historical tick-level cryptocurrency market data replay API.
What it is and what it does
tardis-dev is a Python async client for the Tardis.dev API, designed to fetch and replay historical cryptocurrency market data at tick granularity from multiple exchanges. It abstracts away HTTP polling and connection management, letting you iterate over timestamped market events (trades, orderbook updates) as if replaying a live feed. The package supports two primary workflows: streaming historical data through an async iterator for backtesting or analysis, and bulk downloading datasets as CSV files for offline processing.
The package requires Python 3.9+ and depends on aiohttp for HTTP requests, python-dateutil for flexible date parsing, aiofiles for async file I/O during downloads, and zstandard for decompression. It is actively maintained, carries no known security vulnerabilities, and is positioned as the v3 API—users of the older tardis-client package should migrate to the new top-level functions (replay, download_datasets, clear_cache).
Use it for:
- Backtest trading strategies using historical tick-level data from multiple crypto exchanges without manual data collection.
- Build market microstructure analysis tools that need precise orderbook snapshots and trade events in exchange-native format.
- Download and archive historical cryptocurrency price and volume data as CSV for research or reporting.
- Replay market conditions from a specific date range to validate order execution logic or risk models.
- Feed historical data into live trading systems for dry runs before deploying to production.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides async access to tick-level historical cryptocurrency market data from multiple exchanges via the Tardis.dev API, supporting both live replay and CSV download workflows.
Yes. The package is actively maintained, has no known vulnerabilities, and solves a specific problem—accessing tick-level crypto market data—with low install friction. The MPL-2.0 copyleft license is a consideration only if you plan to redistribute or embed it in proprietary code. Install it if you need historical cryptocurrency market replay or bulk data downloads; skip it if you need real-time streaming or normalized data across exchanges.
Install
tardis-dev on PyPI
pip
pip install tardis-devuv
uv add tardis-devpoetry
poetry add tardis-devInstalling tardis-dev
Before you install
Low friction install with four runtime dependencies (aiohttp, python-dateutil, aiofiles, zstandard). Package is actively maintained with a recent release and no known vulnerabilities.
License in practice
Licensed under MPL-2.0 (copyleft), which requires derivative works to disclose source code modifications under the same license—relevant if you plan to redistribute or embed this package in a proprietary product.
Quickstart
pip install tardis-dev
import asyncio
from tardis_dev import Channel, replay
async def main():
async for local_timestamp, message in replay(
exchange="binance",
from_date="2024-03-01",
to_date="2024-03-02",
filters=[Channel("trade", ["btcusdt"])],
api_key="YOUR_API_KEY",
):
print(local_timestamp, message)
asyncio.run(main())
Requires Python 3.9+; Tardis.dev API key required for data access.
Verify before relying
- Whether Tardis.dev API key is required for all use cases or only certain data types
- Scope and completeness of exchange coverage beyond the reference to docs.tardis.dev
- Data retention and update frequency for historical datasets across supported exchanges
Package facts
| License | MPL-2.0 (copyleft) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — aiohttp, python-dateutil, aiofiles, zstandard |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 753,617/month — #5,146 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tardis_dev-4.3.0-py3-none-any.whl
Keywords: cryptocurrency data feed, market data, api client, orderbook, crypto markets data replay, historical data, historical cryptocurrency prices, cryptocurrency api
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
tardis-clienttardis-client is a deprecated Python client for…
copyleft · top 15,000 on PyPI
pycoingeckoPython wrapper around the CoinGecko API (v3)…
permissive · top 15,000 on PyPI
databentoOfficial Python client for accessing live and…
permissive · top 5,000 on PyPI
python-binanceUnofficial Python wrapper for the Binance…
permissive · top 15,000 on PyPI
openbb-cryptoProvides cryptocurrency data retrieval commands…
agpl · top 15,000 on PyPI
freqtradeFreqtrade is a Python-based cryptocurrency…
copyleft · top 15,000 on PyPI
tushareFetches historical and real-time Chinese stock…
permissive · top 15,000 on PyPI
finance-datareaderFetches historical and current financial…
permissive · top 15,000 on PyPI
alpha-vantageFetches real-time and historical stock,…
permissive · top 15,000 on PyPI
dhanhqPython client library for the Dhan trading API,…
permissive · top 15,000 on PyPI