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:
  btc = await indexer.data.get_market('BTC-USD')
  print(btc['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

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.3.0.tar.gz (34.3 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.3.0-py3-none-any.whl (52.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for typed_dydx-0.3.0.tar.gz
Algorithm Hash digest
SHA256 c90b3a997319e1b968bf6b0656fbb4324f8d4025d21592e79b9814f3f4ddf8ec
MD5 c0c2fba1dc651311393a34379770edc3
BLAKE2b-256 b2b7930780bcf22b197fa38236f9015517425b186c0a080f6414172766538025

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for typed_dydx-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fefab345479d3dcbf6e9085dfc25ee08ee454b67dc7d8ce038a8b2ec5b870c4d
MD5 236fdd312e625c08eef646b8e21c4bea
BLAKE2b-256 cf6842ece596712781769737d3751487fe579155728e032e0f4b45cd977e2d2d

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