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.6.1

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.6.1
File Size Uploaded Provenance Actions
typed_bitget-0.6.1.tar.gz 291.4 kB With provenance Details for typed_bitget-0.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.1 MB

Release files / typed_bitget-0.6.1.tar.gz

Download URL typed_bitget-0.6.1.tar.gz
Size 291.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8ec7e47f865d1acc3f1af2bac1c48e6e3c49d4df98f45d1923fe7c04a2e751d5
BLAKE2b-256 checksum
How to use checksums
91993b3a5d97eca858381fd3d1da10bd672b0610a2e2eca50b1ec86769c0f71c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

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

Download URL typed_bitget-0.6.1-py3-none-any.whl
Size 786.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdf69be7de107a3a6d2dad4053a0e581d42726e8eb8ef80bcd97cea0827ee3b4
BLAKE2b-256 checksum
How to use checksums
1df4dfe6b53ae77fed97011bcb2f046adbcdab752887b901dcef9866eba95c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 17, 2026.

Transparency log

Security for typed-bitget 0.6.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typed_bitget-0.6.1.tar.gz

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 Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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