DocumentationAPI endpoints, Python SDK, and historical data format
Ask on ChatGPTInstallation
Get started with the CryptoHFTData Python SDK to access high-frequency trading data from major crypto exchanges.
Install via pip
bash
pip install cryptohftdataQuick Start
python
1# Get orderbook data for BTC/USDT on Binance
2df = client.get_orderbook(
3 symbol="BTCUSDT",
4 exchange=chd.exchanges.BINANCE_SPOT,
5 start_date="2025-08-01",
6 end_date="2025-08-01"
7)
8
9# Display basic information about the data
10print(f"Data shape: {df.shape}")
11print(f"Columns: {list(df.columns)}")
12print("First few rows:")
13print(df.head())
14