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.3.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-deribit 0.3.0
File Size Uploaded
typed_deribit-0.3.0.tar.gz 155.5 kB Details

Built distribution (wheel)

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

Total release size: 502.5 kB

Release files / typed_deribit-0.3.0.tar.gz

Download URL typed_deribit-0.3.0.tar.gz
Size 155.5 kB
Tags Source
SHA-256 checksum
How to use checksums
29271f6790f6d6283e5c73e34d9ba2c160238c8f3bac805c21f956f5e0c49687
BLAKE2b-256 checksum
How to use checksums
75bec95178b7c9071f1b75816f0f650f2ad9cb14ac5e8a024f5faa20d648a2cd
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 10, 2026.

Transparency log

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

Download URL typed_deribit-0.3.0-py3-none-any.whl
Size 347.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8e1f34711a56e719c78308a040e3bbaf97e1f702ce34a76e7266525e921838a
BLAKE2b-256 checksum
How to use checksums
83ec46b2bd7f5ef4a2f1b7c4fd1b10501aeacf40607b1ddbb39400de2ed3e676
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.0 This release

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