Skip to main content

Typed dYdX

A fully typed, validated async client for the dYdX Indexer, Chain (Cosmos gRPC + CometBFT), and Node APIs.

PyPI version Python versions Docs License



from typed_dydx import Dydx

async with Dydx.testnet(public=True) as client:
  market = await client.indexer.data.get_market('BTC-USD')
  candles = await client.indexer.streams.candles('ETH-USD', resolution='1MIN')
  async for candle in candles:
    print(candle)
    break
  await candles.unsubscribe()
  balances = await client.chain.bank.all_balances('dydx1...', resolve_denom=False)
  block = await client.chain.comet.block()
  result = await client.node.place_order(market, order={
    'side': 'BUY',
    'size': '0.0001',
    'price': '50000',
    'flags': 'LONG_TERM',
  })

Why Typed dYdX?

  • 🎯 Precise Types: Typed inputs and responses across the Indexer, Chain, and Node surfaces.
  • ✅ Runtime Validation: Indexer and Comet responses validated by default.
  • ⚡ Async First: Indexer HTTP and WebSocket streams, Cosmos gRPC queries, and signed node transactions.
  • 📚 Full Surface: client.indexer, client.chain, and client.node cover market data, account history, chain state, and order placement.

Installation

pip install typed-dydx

How To

Reference

Design Philosophy

Typed dYdX follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

Metadata

Release files for typed-dydx 3.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-dydx 3.7.0
File Size Uploaded
typed_dydx-3.7.0.tar.gz 276.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-dydx 3.7.0
File Interpreter ABI Platform
typed_dydx-3.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 719.8 kB

Release files / typed_dydx-3.7.0.tar.gz

Download URL typed_dydx-3.7.0.tar.gz
Size 276.4 kB
Tags Source
SHA-256 checksum
How to use checksums
28a654cf042e40539a92f4bcd5943ad0361aa95b121d2b9d7068684199073119
BLAKE2b-256 checksum
How to use checksums
d651aa4e351376194f2211df7b69a136676b3f1b54ac75f3f58ec291779f0c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / typed_dydx-3.7.0-py3-none-any.whl

Download URL typed_dydx-3.7.0-py3-none-any.whl
Size 443.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6eb57d5623f9e9bfbac6e11283aaec89a1a6d7f18447195dadf38726c294f426
BLAKE2b-256 checksum
How to use checksums
e13f737cf7bc943d20e15cf6af2747c3b98de029a4c5dd0fd83995042d0138b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.7.0 This release

2 release files

3.6.0

2 release files

3.5.0

2 release files

3.4.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.9

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page