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.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typed_deribit-0.4.1.tar.gz | 155.5 kB | With provenance | Details for typed_deribit-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typed_deribit-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for typed_deribit-0.4.1-py3-none-any.whl |
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 logRelease 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 logSecurity for typed-deribit 0.4.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for typed_deribit-0.4.1.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.