Skip to main content

Typed Bitget

A fully typed, validated async client for the Bitget API.

PyPI version Python versions Docs License



from typed_bitget import Bitget

async with Bitget.new(public=True) as client:
  tickers = await client.uta.market.tickers(category='SPOT', symbol='BTCUSDT')
  print(tickers)

Bitget runs two live API generations on the same account host: Classic v2 (client.classic), the long-standing per-product API, and UTA v3 (client.uta), Bitget's unified-account generation and the one Bitget recommends for new integrations. A Bitget account is either Classic-mode or UTA-mode, never both, so use whichever surface matches your account. This client covers both, plus their independent WebSocket feeds (client.classic_streams / client.uta_streams). The examples below use UTA.

Why Typed Bitget?

  • 🎯 Precise Types: typed inputs and responses across both the Classic v2 and UTA v3 REST surfaces, not dict/Any.
  • ✅ Runtime Validation: every response validated against Bitget's real wire shapes by default.
  • ⚡ Async First: async HTTP plus four independent WebSocket connections (Classic/UTA × public/private), built for concurrent workflows.
  • 📚 Full Surface: spot, margin, futures, earn, copy trading, P2P, broker, and tax, across both API generations, not just the popular endpoints.

Installation

pip install typed-bitget

How To

Reference

Design Philosophy

Typed Bitget 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_bitget-0.2.0.tar.gz (248.4 kB view details)

Uploaded Source

Built Distribution

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

typed_bitget-0.2.0-py3-none-any.whl (682.8 kB view details)

Uploaded Python 3

File details

Details for the file typed_bitget-0.2.0.tar.gz.

File metadata

  • Download URL: typed_bitget-0.2.0.tar.gz
  • Upload date:
  • Size: 248.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_bitget-0.2.0.tar.gz
Algorithm Hash digest
SHA256 95a8da41f01c6a7b73753a3293d0c37f87ec0ea0e3badf00b7576592a4223b5c
MD5 5ed13f5de3e2abd2966d8d37102adba0
BLAKE2b-256 b7d0b016a90603e96a81401b9b3c15f5ec5c326a1c97e498dcabc6962be58fd8

See more details on using hashes here.

Provenance

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

Publisher: release-bitget.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_bitget-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: typed_bitget-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 682.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_bitget-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 537b9564fd87cad728d0a42c9efee4b8ea2f3319f4ef6cd35c28874af9810ac4
MD5 f749128b73b86db9179f379a79d0ce7f
BLAKE2b-256 df8e8387f1e68fd7955a0ac33bae2c1ddead5fe263ab3a514fdd2362ab004584

See more details on using hashes here.

Provenance

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

Publisher: release-bitget.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.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

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