Skip to main content

Python SDK for Depthy — real-time crypto liquidity intelligence

Project description

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

depthy_python-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

depthy_python-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file depthy_python-0.1.0.tar.gz.

File metadata

  • Download URL: depthy_python-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for depthy_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5addfdd4581c0657d69fe46431b6a109883938e506d079965c76097d948df315
MD5 42c6ba4b7c4ecfb58eb794f79989adc7
BLAKE2b-256 f6784f0a385b0e588a1d0cb74b5be9692e3b6aa428f8f3629481cdfd2dd543fa

See more details on using hashes here.

File details

Details for the file depthy_python-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: depthy_python-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for depthy_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18319e85971767e4ba72f4e51222812843636b076e11cf5fd46d28b2bd1d972f
MD5 d570b13f4e04d16e424e7c4fdd05aa97
BLAKE2b-256 e1eef65922c4ad31818f8e665169375b91fd1ba4c7df9a11f6272b98138ae3ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page