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 DYDX
async with DYDX.new() as dydx:
market = await dydx.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:
DYDXfromdydxas the default authenticated entry point when you want both indexer and trading access togetherIndexerfromdydxfor HTTP market/account data and WebSocket streamsPublicNodefromdydx.nodefor public node reads like prices, CLOB pair data, and fee tiersPrivateNodefromdydx.nodefor 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
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
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 typed_dydx-1.0.7.tar.gz.
File metadata
- Download URL: typed_dydx-1.0.7.tar.gz
- Upload date:
- Size: 41.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c36677864137b94134f5692d14e41cfe30776aa882e836a137a6c3550305d4ac
|
|
| MD5 |
e89f802a3781b40aae2f646b4de07fea
|
|
| BLAKE2b-256 |
8a2fc66b3eab0540ecb7496ff2a9c1f83612467cf8632fe17a60beb379287041
|
File details
Details for the file typed_dydx-1.0.7-py3-none-any.whl.
File metadata
- Download URL: typed_dydx-1.0.7-py3-none-any.whl
- Upload date:
- Size: 81.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1392008bf4f55375e21602608ed64566356dd0fd062b988dcbcc0e0a12dec2b5
|
|
| MD5 |
474927d2ad028d9f270873aedd2a6b9d
|
|
| BLAKE2b-256 |
92f6c6839406dbe9ef29f48051f88b43e9307d01c5af86bc6d8e7c41733d87be
|