A fully typed, validated async client for the Bitget API.
- Documentation: https://tribulnation.com/typed/bitget
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/bitget
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
- Fetch Market Data
- Listen To Streams
- Place & Manage Orders
- Manage Account Data
- Manage Earn Instruments
- Manage Deposits & Withdrawals
- Paginate Through Results
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95a8da41f01c6a7b73753a3293d0c37f87ec0ea0e3badf00b7576592a4223b5c
|
|
| MD5 |
5ed13f5de3e2abd2966d8d37102adba0
|
|
| BLAKE2b-256 |
b7d0b016a90603e96a81401b9b3c15f5ec5c326a1c97e498dcabc6962be58fd8
|
Provenance
The following attestation bundles were made for typed_bitget-0.2.0.tar.gz:
Publisher:
release-bitget.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_bitget-0.2.0.tar.gz -
Subject digest:
95a8da41f01c6a7b73753a3293d0c37f87ec0ea0e3badf00b7576592a4223b5c - Sigstore transparency entry: 2551140925
- Sigstore integration time:
-
Permalink:
tribulnation/typed@aea08656a7396eef70d2f75fe6fcc969bf4ff224 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-bitget.yml@aea08656a7396eef70d2f75fe6fcc969bf4ff224 -
Trigger Event:
pull_request
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
537b9564fd87cad728d0a42c9efee4b8ea2f3319f4ef6cd35c28874af9810ac4
|
|
| MD5 |
f749128b73b86db9179f379a79d0ce7f
|
|
| BLAKE2b-256 |
df8e8387f1e68fd7955a0ac33bae2c1ddead5fe263ab3a514fdd2362ab004584
|
Provenance
The following attestation bundles were made for typed_bitget-0.2.0-py3-none-any.whl:
Publisher:
release-bitget.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_bitget-0.2.0-py3-none-any.whl -
Subject digest:
537b9564fd87cad728d0a42c9efee4b8ea2f3319f4ef6cd35c28874af9810ac4 - Sigstore transparency entry: 2551141005
- Sigstore integration time:
-
Permalink:
tribulnation/typed@aea08656a7396eef70d2f75fe6fcc969bf4ff224 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-bitget.yml@aea08656a7396eef70d2f75fe6fcc969bf4ff224 -
Trigger Event:
pull_request
-
Statement type: