Python client for tardis.dev - historical tick-level cryptocurrency market data replay API.
Project description
tardis-client
Python client for tardis.dev - historical tick-level cryptocurrency market data replay API.
Usage
import asyncio
from tardis_client import TardisClient, Channel
async def replay():
tardis_client = TardisClient()
messages = tardis_client.replay(
exchange="bitmex",
from_date="2019-06-01",
to_date="2019-06-02",
filters=[Channel(name="trade", symbols=["XBTUSD","ETHUSD"]), Channel("orderBookL2", ["XBTUSD"])],
)
async for local_timestamp, message in messages:
print(message)
asyncio.run(replay())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tardis-client-0.1.0.tar.gz
(12.5 kB
view hashes)
Built Distribution
Close
Hashes for tardis_client-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef3a609dcf0fbc38185ffb2f5c2436724f96aab7b2a729ba2a01753d16879d67 |
|
MD5 | af93901b84013b89231f0596cd4d1834 |
|
BLAKE2b-256 | 45777c73a469c7d7b68f336cfe576a20b976063aa4f82dec99151192ff5710f3 |