Skip to main content

Typed Bybit

A fully typed, validated async client for the Bybit v5 API.

PyPI version Python versions Docs License



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

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

typed_bybit-0.2.0.tar.gz (261.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_bybit-0.2.0-py3-none-any.whl (683.8 kB view details)

Uploaded Python 3

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

Hashes for typed_bybit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0fb6de9eee5a16c3d7a65b0741bccd924111b8adca6ae9fb87a8a08ee34a0e6d
MD5 4b4c648767489161d24f2751791bd74e
BLAKE2b-256 f1668b609ee640e7a63965a420fd56662d68a655c026ccaaa1e1032fccd72c64

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bybit-0.2.0.tar.gz:

Publisher: release-bybit.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for typed_bybit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 840e072aa2595692e67b7aa564cdabce8693b2a2305b46038df7b92d50456e7e
MD5 0fe3c7a70edc3c1a53c4959c04decd13
BLAKE2b-256 9dcac82ff13b8719e31cd59ec3dcfc0d78292b2ae223831e2468ee83d69be7e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bybit-0.2.0-py3-none-any.whl:

Publisher: release-bybit.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page