Skip to main content

Typed Deribit

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

PyPI version Python versions Docs License



from typed_deribit import Deribit

async with Deribit.new(testnet=True) as client:
  instruments = await client.http.market_data.get_instruments(
    currency='BTC', kind='future'
  )
  print(instruments)

Why Typed Deribit?

  • 🎯 Precise Types: every request/reply method and channel subscription across .http, .ws, and .streams is typed, parameters and all — not dict/Any.
  • ✅ Runtime Validation: responses are validated against the real schema by default, not just typed on paper.
  • ⚡ Async First: async HTTP and WebSocket transports, with .streams running concurrently on its own dedicated connection.
  • 📚 Full Surface: every documented endpoint across market_data, trading, account, wallet, block_rfq, block_trade, combo_books, matching_engine, session, subscription_management, and supporting — not just the popular ones.

Installation

pip install typed-deribit

How To

Reference

Design Philosophy

Typed Deribit follows the principles outlined in this blog post.

Details matter. Developer experience matters.

License

MIT — see LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typed_deribit-0.2.0.tar.gz (177.9 kB view details)

Uploaded Source

Built Distribution

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

typed_deribit-0.2.0-py3-none-any.whl (457.9 kB view details)

Uploaded Python 3

File details

Details for the file typed_deribit-0.2.0.tar.gz.

File metadata

  • Download URL: typed_deribit-0.2.0.tar.gz
  • Upload date:
  • Size: 177.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_deribit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6b33547c90f0a9e77edc48c89dfa17aaf71395d731267c406c29f3b78797ea17
MD5 02b66c61a8e36d5981a5daea261545d7
BLAKE2b-256 dbc093d96ff7ffe2d7ab7cca91f0871fd4bc48da0be49b90edce48bef8ae513e

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_deribit-0.2.0.tar.gz:

Publisher: release-deribit.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typed_deribit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: typed_deribit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 457.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_deribit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 631e9576957ab5cd94ed3b0662b0bced738d8f711ad7d9e05b50ebcab45f1a75
MD5 f09adbed8769b5dad2c400e0feab7228
BLAKE2b-256 2bb9da22bf6df5cddadc21e9f885585cb46fef432f0ed4aa8941a333eb6c83e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_deribit-0.2.0-py3-none-any.whl:

Publisher: release-deribit.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page