Depthy Python SDK
Python client for the Depthy API — real-time crypto order book depth, liquidity walls, liquidation clusters, and Polymarket signals.
Install
pip install depthy-python
Quick Start
from depthy import DepthyClient
client = DepthyClient(api_key="dk_live_your_key_here")
# List available symbols
symbols = client.list_symbols()
# Order book depth
depth = client.get_depth("BTC")
# Liquidity walls
walls = client.get_walls("ETH", min_size_usd=200000)
# Liquidation clusters
clusters = client.get_liquidation_clusters("SOL")
# Market overview
market = client.get_market("BTC")
# Open interest changes
oi = client.get_oi_change("BTC")
# Compare multiple symbols (Pro key required)
comparison = client.compare_symbols(["BTC", "ETH", "SOL"])
Async Usage
from depthy import AsyncDepthyClient
async with AsyncDepthyClient(api_key="dk_live_your_key_here") as client:
depth = await client.get_depth("BTC")
walls = await client.get_walls("ETH")
Polymarket
# Active prediction markets
markets = client.list_pm_markets(market_type="crypto_15m")
# Smart-money signals
signals = client.get_pm_signals(limit=10)
# Top wallets by profit
wallets = client.get_pm_top_wallets(limit=5)
Error Handling
from depthy import DepthyClient, AuthError, RateLimitError, NotFoundError
client = DepthyClient(api_key="dk_live_...")
try:
depth = client.get_depth("BTC")
except AuthError:
print("Check your API key")
except RateLimitError:
print("Slow down — free tier: 30 req/min")
except NotFoundError:
print("Symbol not found")
API Methods
| Method | Description | Free Tier |
|---|---|---|
list_symbols() |
List tradable symbols | Yes |
get_depth(symbol) |
Order book depth & imbalance | Yes (T1) |
get_depth_recent(symbol) |
Depth snapshots over time | Yes (T1) |
get_walls(symbol) |
Large resting orders | Yes (T1) |
get_liquidation_clusters(symbol) |
Liquidation risk zones | Yes (T1) |
get_market(symbol) |
Price, volume, funding, OI | Yes (T1) |
get_oi_change(symbol) |
Open interest changes | Yes |
compare_symbols(symbols) |
Multi-symbol comparison | Pro+ |
list_pm_markets() |
Polymarket markets | Yes |
get_pm_signals() |
Smart-money signals | Yes |
get_pm_top_wallets() |
Top wallets by profit | Yes |
Get an API Key
Sign up for a free key at depthy.io.
Links
- MCP Server — For Claude Desktop, Cursor, etc.
- API Docs — Full endpoint reference
License
MIT
Metadata
Release files for depthy-python 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| depthy_python-0.1.0.tar.gz | 5.1 kB | Without provenance | Details for depthy_python-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| depthy_python-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for depthy_python-0.1.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / depthy_python-0.1.0.tar.gz
| Download URL | depthy_python-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5addfdd4581c0657d69fe46431b6a109883938e506d079965c76097d948df315
|
|
BLAKE2b-256 checksum How to use checksums |
f6784f0a385b0e588a1d0cb74b5be9692e3b6aa428f8f3629481cdfd2dd543fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / depthy_python-0.1.0-py3-none-any.whl
| Download URL | depthy_python-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18319e85971767e4ba72f4e51222812843636b076e11cf5fd46d28b2bd1d972f
|
|
BLAKE2b-256 checksum How to use checksums |
e1eef65922c4ad31818f8e665169375b91fd1ba4c7df9a11f6272b98138ae3ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for depthy-python 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.