Python SDK for damonstats.com — real-time crypto derivatives data
Project description
damonstats Python SDK
Real-time crypto derivatives data — funding rates, open interest, basis, liquidations across Binance, OKX, Bybit, Hyperliquid, and dYdX.
pip install crypto-data-sdk
Quick Start
from damonstats import Client
client = Client() # Uses free tier by default
# Get BTC funding rates across all exchanges
btc = client.get_coin("BTC")
print(btc["exchanges"]["binance"]["funding_rate"])
# Get cross-exchange basis arb opportunities
basis = client.get_basis()
for row in basis["data"][:5]:
print(f"{row['symbol']}: {row['max_spread']*100:.3f}% spread")
# Get top OI rankings
oi = client.get_open_interest()
for row in oi["data"][:5]:
print(f"{row['symbol']} ({row['exchange']}): ${row['open_interest']/1e9:.2f}B")
# Get funding rate history
hist = client.get_history("ETH", metric="funding_rate")
print(f"{len(hist['data'])} data points")
API
| Method | Description |
|---|---|
get_dashboard() |
Homepage aggregations |
get_coin(symbol) |
Single coin + 24h history |
get_funding_rates(exchange?, sort?) |
All funding rates |
get_liquidations(symbol?, limit?) |
Liquidation data |
get_open_interest(exchange?) |
OI rankings |
get_basis() |
Cross-exchange basis scanner |
get_exchanges() |
Exchange metadata + referral info |
get_compare(e1, e2) |
Exchange comparison |
get_symbols() |
Available symbols |
get_history(symbol, metric?) |
Time-series data |
Pro Tier
Upgrade at damonstats.com/api:
- Free: 1,000 req/day
- Pro ($29/mo): 100,000 req/day + 90-day history
- Enterprise ($199/mo): Unlimited + full history + WebSocket
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
crypto_data_sdk-0.1.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crypto_data_sdk-0.1.0.tar.gz.
File metadata
- Download URL: crypto_data_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a4d119cc03f02373cead0994f4ad4d66e070a5cdd4a216afa5d459bad818458
|
|
| MD5 |
9ca3851af76d41279c08ef1e8009329b
|
|
| BLAKE2b-256 |
f0f2605ad2e188683e20c1586b3179ccf41aa65d472f318472a818a5e92c2e61
|
File details
Details for the file crypto_data_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crypto_data_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f96146722ed5d6c655992b0988907107a077393b386ec5fe30bf24c7eeb668b
|
|
| MD5 |
9eec36f9fea434b7c94401132935f5b6
|
|
| BLAKE2b-256 |
c861a3a989842c9e132b49ea663e1694b34ab75e8fc3410a4a4aec992e9742f2
|