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.

Metadata

Release files for typed-bitget 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for typed-bitget 0.3.0
File Size Uploaded
typed_bitget-0.3.0.tar.gz 255.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-bitget 0.3.0
File Interpreter ABI Platform
typed_bitget-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 966.3 kB

Release files / typed_bitget-0.3.0.tar.gz

Download URL typed_bitget-0.3.0.tar.gz
Size 255.3 kB
Tags Source
SHA-256 checksum
How to use checksums
99343f9c7668fc2d8a20d06288b646a541beb403ea1674258e99f0a9283a5c2c
BLAKE2b-256 checksum
How to use checksums
803fa74cb9771c38d9e590893d400755c72423c87dc3a02f0c2c2869a97cdce0
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 Aug 25, 2026.

Transparency log

Release files / typed_bitget-0.3.0-py3-none-any.whl

Download URL typed_bitget-0.3.0-py3-none-any.whl
Size 711.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2034a430745662a96f51a9a8444e3bad47aaf9f97ed6b5e6f813f728a1255cdb
BLAKE2b-256 checksum
How to use checksums
a9b69565e9a568b50c13c91d5a72fba8130b53a7181840d44beaa4f58cc7794b
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 Aug 25, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page