A fully typed, validated async client for the Deribit API.
- Documentation: https://tribulnation.com/typed/deribit
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/deribit
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 — notdict/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
.streamsrunning 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, andsupporting— not just the popular ones.
Installation
pip install typed-deribit
How To
- Fetch Market Data
- Manage Account Data
- Place & Manage Orders
- Manage Deposits & Withdrawals
- Paginate Through Results
- Listen To Streams
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)
| File | Size | Uploaded | |
|---|---|---|---|
| typed_deribit-0.3.0.tar.gz | 155.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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