A fully typed, validated async client for the Bybit v5 API.
- Documentation: https://tribulnation.com/typed/bybit
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/bybit
from typed_bybit import Bybit
async with Bybit.new(public=True) as client:
ticker = await client.http.market.tickers(category='spot', symbol='BTCUSDT')
print(ticker['list'][0]['lastPrice'])
Why Typed Bybit?
- 🎯 Precise Types: Typed inputs and responses across REST and WebSocket, discriminated by product category, for trading, positions, account, assets, and earn products alike.
- ✅ Runtime Validation: Responses and pushed stream messages validated by default.
- ⚡ Async First: One shared HTTP pool and nine lazily-opened WebSocket connections, built for concurrent workflows.
- 📚 Full Surface: Nearly the entire documented v5 REST and WebSocket surface — market data, order entry, positions, account, assets, earn, and more.
Installation
pip install typed-bybit
How To
- Fetch Candles
- Read The Order Book
- List Instruments
- Read Tickers And Trades
- Listen To Streams
- Place & Manage Orders
- Fetch Account Data
- Manage Deposits & Withdrawals
- Manage Earn Instruments
- Paginate Through Results
Reference
Design Philosophy
Typed Bybit 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_bybit-0.2.0.tar.gz.
File metadata
- Download URL: typed_bybit-0.2.0.tar.gz
- Upload date:
- Size: 261.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fb6de9eee5a16c3d7a65b0741bccd924111b8adca6ae9fb87a8a08ee34a0e6d
|
|
| MD5 |
4b4c648767489161d24f2751791bd74e
|
|
| BLAKE2b-256 |
f1668b609ee640e7a63965a420fd56662d68a655c026ccaaa1e1032fccd72c64
|
Provenance
The following attestation bundles were made for typed_bybit-0.2.0.tar.gz:
Publisher:
release-bybit.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_bybit-0.2.0.tar.gz -
Subject digest:
0fb6de9eee5a16c3d7a65b0741bccd924111b8adca6ae9fb87a8a08ee34a0e6d - Sigstore transparency entry: 2537304555
- Sigstore integration time:
-
Permalink:
tribulnation/typed@5f84b2504e7ba92c1f8d35a33be7962a373ac79d -
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-bybit.yml@5f84b2504e7ba92c1f8d35a33be7962a373ac79d -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_bybit-0.2.0-py3-none-any.whl.
File metadata
- Download URL: typed_bybit-0.2.0-py3-none-any.whl
- Upload date:
- Size: 683.8 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 |
840e072aa2595692e67b7aa564cdabce8693b2a2305b46038df7b92d50456e7e
|
|
| MD5 |
0fe3c7a70edc3c1a53c4959c04decd13
|
|
| BLAKE2b-256 |
9dcac82ff13b8719e31cd59ec3dcfc0d78292b2ae223831e2468ee83d69be7e9
|
Provenance
The following attestation bundles were made for typed_bybit-0.2.0-py3-none-any.whl:
Publisher:
release-bybit.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_bybit-0.2.0-py3-none-any.whl -
Subject digest:
840e072aa2595692e67b7aa564cdabce8693b2a2305b46038df7b92d50456e7e - Sigstore transparency entry: 2537305091
- Sigstore integration time:
-
Permalink:
tribulnation/typed@5f84b2504e7ba92c1f8d35a33be7962a373ac79d -
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-bybit.yml@5f84b2504e7ba92c1f8d35a33be7962a373ac79d -
Trigger Event:
pull_request
-
Statement type: