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 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.streamsis 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbbd3dcf60e83c13d8afc85c6a40c4b35fbf07f682e84d6ae7cabaf1b755c941
|
|
| MD5 |
7b49a62398872d6194bca2249bb656fb
|
|
| BLAKE2b-256 |
df6494318c029b1b0043a7e8ad0e8c871013e3bea9c237202aefe78e3505e3d2
|
Provenance
The following attestation bundles were made for typed_deribit-0.1.2.tar.gz:
Publisher:
release-deribit.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_deribit-0.1.2.tar.gz -
Subject digest:
dbbd3dcf60e83c13d8afc85c6a40c4b35fbf07f682e84d6ae7cabaf1b755c941 - Sigstore transparency entry: 2507940449
- Sigstore integration time:
-
Permalink:
tribulnation/typed@97e59e8040112d6588aed4bc8be1eb1d700894f9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-deribit.yml@97e59e8040112d6588aed4bc8be1eb1d700894f9 -
Trigger Event:
pull_request
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c944ac80b9e85ac1be94ba14cb2ea484667c89a80e5c9c9a1619e513d5bc420e
|
|
| MD5 |
b15c1661e63a52f8575c39132091af3f
|
|
| BLAKE2b-256 |
9ce5e3c3a2fb097d673f3ef4d0b1f0726e74b9bf9ce3b9b63f789a89ddc88fc4
|
Provenance
The following attestation bundles were made for typed_deribit-0.1.2-py3-none-any.whl:
Publisher:
release-deribit.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_deribit-0.1.2-py3-none-any.whl -
Subject digest:
c944ac80b9e85ac1be94ba14cb2ea484667c89a80e5c9c9a1619e513d5bc420e - Sigstore transparency entry: 2507940597
- Sigstore integration time:
-
Permalink:
tribulnation/typed@97e59e8040112d6588aed4bc8be1eb1d700894f9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-deribit.yml@97e59e8040112d6588aed4bc8be1eb1d700894f9 -
Trigger Event:
pull_request
-
Statement type: