DocumentationAPI endpoints, Python SDK, and historical data format
Ask on ChatGPTAuthentication
Authentication is required to access the CryptoHFTData API. You'll need an API key which you can generate from your dashboard.
Getting Your API Key
- Log in to your CryptoHFTData dashboard
- Click on "Generate API Key" in the API Access section
- Copy your API key and store it securely
Using Your API Key
python
1import cryptohftdata as chd
2import os
3
4# Method 1: Pass API key directly
5client = chd.CryptoHFTDataClient(api_key="your-api-key-here")
6
7# Method 2: Set environment variable
8os.environ['CRYPTOHFTDATA_API_KEY'] = 'your-api-key-here'
9client = chd.CryptoHFTDataClient() # Will automatically use env variableSecurity Note
Never hardcode your API key in production code. Use environment variables or a secure configuration management system.