Skip to main content

A fully typed, validated async client for the dYdX API.

Project description

Typed dYdX

A fully typed, validated async client for the dYdX v4 APIs

Use autocomplete instead of documentation.

from dydx import Indexer

async with Indexer.new() as indexer:
  market = await indexer.data.get_market('BTC-USD')
  print(market['oraclePrice'])

Why Typed dYdX?

  • 🎯 Precise Types: Strong typing throughout, so your editor can help before runtime does.
  • ✅ Automatic Validation: Catch upstream API changes earlier, where they are easier to debug.
  • ⚡ Async First: Built for concurrent, network-heavy workflows.
  • 🔒 Safer Usage: Typed inputs and explicit errors reduce avoidable mistakes.
  • 🎨 Better DX: Clear routing, sensible defaults, and minimal ceremony.
  • 📦 Practical Extras: Pagination, streams, and helpers where they actually help.

Package Shape

This package intentionally follows the way dYdX itself is split:

  • Indexer for HTTP market/account data and WebSocket subaccount streams
  • PublicNode for public node reads like prices, CLOB pair data, and fee tiers
  • PrivateNode for signed trading actions like placing and cancelling orders

Indexer.data includes the full documented indexer HTTP read surface, plus a few convenience helpers like get_market(), get_open_position(), and the *_paged() iterators.

Installation

pip install typed-dydx

Documentation

Read the docs

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

typed_dydx-0.4.0.tar.gz (44.8 kB view details)

Uploaded Source

Built Distribution

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

typed_dydx-0.4.0-py3-none-any.whl (92.7 kB view details)

Uploaded Python 3

File details

Details for the file typed_dydx-0.4.0.tar.gz.

File metadata

  • Download URL: typed_dydx-0.4.0.tar.gz
  • Upload date:
  • Size: 44.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for typed_dydx-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e6e77a2d9a3cd43d6cf93e0f01f4ce31552fc7dea5bfb56038f6da05d076906b
MD5 5bca0c758fd5c36f0c382938bd922628
BLAKE2b-256 a12cf7e6ba3fe49bc37a8bbcc3c6f9d19af38a9433bd5aaa3ebae8b14ae65f6c

See more details on using hashes here.

File details

Details for the file typed_dydx-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: typed_dydx-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 92.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for typed_dydx-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 567243785635797bdea421e5207180fd4bdffa8eb0ea72d64d414936879ca61b
MD5 f23d32258a7d506199b271a794d2aca9
BLAKE2b-256 a419bdcc9953f8c1582ffd70e7624efb5fab3d8a58c0e175733ceadf53a05438

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