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.1

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.1
File Size Uploaded Provenance Actions
typed_dydx-3.7.1.tar.gz 276.8 kB With provenance Details for typed_dydx-3.7.1.tar.gz

Built distribution (wheel)

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

Total release size: 720.9 kB

Release files / typed_dydx-3.7.1.tar.gz

Download URL typed_dydx-3.7.1.tar.gz
Size 276.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8e90fd94723df1b8db8894645a7899e789cb8057df800dc813a0aba3d2e5aeda
BLAKE2b-256 checksum
How to use checksums
51dc045efc161d71be85bfa7a9444fa60108639df98850c0be911b79bdccd6bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

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

Download URL typed_dydx-3.7.1-py3-none-any.whl
Size 444.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85b80a671762cd87fcfcbbddcd88bec1e8f6037406586a73755d188d08a6e5af
BLAKE2b-256 checksum
How to use checksums
e3ae89158f8174fea6c3a5ac44f14675196aa11a7cb884d0572158fc5f16a4e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Security for typed-dydx 3.7.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typed_dydx-3.7.1.tar.gz

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 Nov 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

3.7.1 This release

2 release files Full provenance

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