A fully typed, validated async client for the Bit2Me API.
- Documentation: https://tribulnation.com/typed/bit2me
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/bit2me
from dotenv import load_dotenv
from typed_bit2me import Bit2Me
load_dotenv()
async with Bit2Me.new() as client:
balances = await client.v1.trading.balance()
print(balances[0].get('currency'), balances[0].get('balance'))
Why Typed Bit2Me?
- 🎯 Precise Types: literal types for order sides, order types, and statuses;
Decimalfor prices and amounts; a fullTypedDictper response. - ✅ Runtime Validation: every REST response and every WebSocket push is validated against its documented schema by default.
- ⚡ Async First: async HTTP plus two independent WebSocket surfaces (the Trading Spot socket for order commands and channel subscriptions, and the account-notifications socket), built for concurrent trading workflows.
- 📚 Full Surface: the complete
v1/v2/v3REST surface (trading, wallet, account, earn, and more), not just tickers.
Installation
pip install typed-bit2me
How To
- Fetch Market Data
- Listen To Streams
- Place & Manage Orders
- Fetch Account Data
- Query & Manage Earn
- Query & Manage Deposits/Withdrawals
Reference
Design Philosophy
Typed Bit2Me follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Metadata
Release files for typed-bit2me 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typed_bit2me-0.6.0.tar.gz | 91.3 kB | With provenance | Details for typed_bit2me-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typed_bit2me-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for typed_bit2me-0.6.0-py3-none-any.whl |
Total release size: 276.2 kB
Release files / typed_bit2me-0.6.0.tar.gz
| Download URL | typed_bit2me-0.6.0.tar.gz |
|---|---|
| Size | 91.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b1d76a8c243207b81003e93efd88444a07498ccb83d4fab6145cf81b8830ef0
|
|
BLAKE2b-256 checksum How to use checksums |
c456a080b73cd2671e842f66d0831a09966741f03b119f54f39dd78e6b3cc928
|
| 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 Oct 6, 2026.
Transparency logRelease files / typed_bit2me-0.6.0-py3-none-any.whl
| Download URL | typed_bit2me-0.6.0-py3-none-any.whl |
|---|---|
| Size | 185.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02202f148713a3a294c2ab3339bb798c171b06796e8a20d6fbbf68f8096e60db
|
|
BLAKE2b-256 checksum How to use checksums |
7d4e297d57ee3c3c40bcfdefc9aad815ed1860468448ccecdf4f374cd22217c3
|
| 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 Oct 6, 2026.
Transparency logSecurity for typed-bit2me 0.6.0
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.
Attestation for typed_bit2me-0.6.0.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 Oct 6, 2026.
Transparency logA 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.