Skip to main content

Typed Deribit

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

PyPI version Python versions Docs License



from 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.1.2.tar.gz (175.6 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.1.2-py3-none-any.whl (443.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_deribit-0.1.2.tar.gz
  • Upload date:
  • Size: 175.6 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.1.2.tar.gz
Algorithm Hash digest
SHA256 dbbd3dcf60e83c13d8afc85c6a40c4b35fbf07f682e84d6ae7cabaf1b755c941
MD5 7b49a62398872d6194bca2249bb656fb
BLAKE2b-256 df6494318c029b1b0043a7e8ad0e8c871013e3bea9c237202aefe78e3505e3d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_deribit-0.1.2.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.1.2-py3-none-any.whl.

File metadata

  • Download URL: typed_deribit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 443.7 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c944ac80b9e85ac1be94ba14cb2ea484667c89a80e5c9c9a1619e513d5bc420e
MD5 b15c1661e63a52f8575c39132091af3f
BLAKE2b-256 9ce5e3c3a2fb097d673f3ef4d0b1f0726e74b9bf9ce3b9b63f789a89ddc88fc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_deribit-0.1.2-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

0.2.0

2 files

This release

0.1.2 This release

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