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.market_data.get_instruments(
    currency='BTC', kind='future'
  )
  print(instruments)

Why Typed Deribit?

  • 🎯 Precise Types: every request/reply method and channel subscription, over HTTP, WebSocket, or .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.

Metadata

Release files for typed-deribit 0.4.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-deribit 0.4.1
File Size Uploaded
typed_deribit-0.4.1.tar.gz 155.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-deribit 0.4.1
File Interpreter ABI Platform
typed_deribit-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 502.6 kB

Release files / typed_deribit-0.4.1.tar.gz

Download URL typed_deribit-0.4.1.tar.gz
Size 155.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b8bcdd4ab5cd07939a7feb3f6ec895d0c80fc76ddbd182d2bec4ebd436df1fc2
BLAKE2b-256 checksum
How to use checksums
106bea4ef6a1fa56a40f146ed3f8d48c62c0c2dbb4eb5328470bffcd9c4cea67
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 Sep 21, 2026.

Transparency log

Release files / typed_deribit-0.4.1-py3-none-any.whl

Download URL typed_deribit-0.4.1-py3-none-any.whl
Size 347.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe3eaab68a785094dcfcf80fdb1f0d6ad8622cc2c43b37f2e351b6a01749d173
BLAKE2b-256 checksum
How to use checksums
3cacc5e684da391ae9facf4a309d2829d26b2b6b593c6f2b1c6452edb03bdef5
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 Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

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