Skip to main content

Typed Bitget

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

from 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

Documentation

How To

Design Philosophy

Typed Bitget follows the principles outlined in this blog post.

Details matter. Developer experience matters.

Source Code

github.com/tribulnation/typed

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.1.5.tar.gz (240.8 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.1.5-py3-none-any.whl (657.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_bitget-0.1.5.tar.gz
  • Upload date:
  • Size: 240.8 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.1.5.tar.gz
Algorithm Hash digest
SHA256 13250b00beb866200124036a51edfb0839af879d598a33c1074e665e8fc83bb1
MD5 05f2c88a56eafd77cf718a872e20b781
BLAKE2b-256 b16f1bcdbf95ef08d421172f3d4294b68efb7448527ae70bd5468db40fea4c9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bitget-0.1.5.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.1.5-py3-none-any.whl.

File metadata

  • Download URL: typed_bitget-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 657.9 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.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fb5e3fc9b8460e67df01f425d3c4c98011e6b255c234fa285f992004f313fd29
MD5 994e9c87b9e45e3e8b022eeccbe0c3a4
BLAKE2b-256 334fed6ef48f0dc1f6b3ffa60d11773d2ecaf4045514aaacff9365a27eb55cf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bitget-0.1.5-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

0.2.0

2 files

0.1.6

2 files

This release

0.1.5 This release

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