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.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.
Metadata
Release files for typed-bybit 0.3.2
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_bybit-0.3.2.tar.gz | 287.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| typed_bybit-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 994.8 kB
Release files / typed_bybit-0.3.2.tar.gz
| Download URL | typed_bybit-0.3.2.tar.gz |
|---|---|
| Size | 287.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5df504cb47d7b0fe82c6aacfd267e2149ecbec976b606d45f25864b153fc721a
|
|
BLAKE2b-256 checksum How to use checksums |
2c47096d0e21888834908db36e7cf690936b42fb5d02d9be2eff59b8b38f96ae
|
| 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 20, 2026.
Transparency logRelease files / typed_bybit-0.3.2-py3-none-any.whl
| Download URL | typed_bybit-0.3.2-py3-none-any.whl |
|---|---|
| Size | 707.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2d05ba43990cac0dfb97e730ac8dc61aa4c4144abe84c16fc470514a18c383e
|
|
BLAKE2b-256 checksum How to use checksums |
be44ab9ebc1930932cf96a55404d37e95ffed8e687393bfc82a8f28e70ef45d6
|
| 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 20, 2026.
Transparency log