Typed Bit2Me
Fully typed, validated async client for the Bit2Me API: REST trading, wallet, and earn, plus both Bit2Me WebSocket surfaces.
Use autocomplete instead of documentation.
from dotenv import load_dotenv
from 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
Documentation
- Getting Started: install the package and configure credentials
- How To: task-focused guides for market data, streams, orders, accounts, earn, and funds
- Reference: async usage, error handling, and environment variables
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_bit2me-0.1.3.tar.gz.
File metadata
- Download URL: typed_bit2me-0.1.3.tar.gz
- Upload date:
- Size: 69.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dce72814354d09420cb2f3ac82a79d4bba43eb34d223a241103a84ba540889f
|
|
| MD5 |
8eff719bd1eab379c47f1092303ff46e
|
|
| BLAKE2b-256 |
eb1a133af6c8b9e60311212ff629e4280f511d5daaf1fbaa24dbe0c2fd417aee
|
Provenance
The following attestation bundles were made for typed_bit2me-0.1.3.tar.gz:
Publisher:
release-bit2me.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_bit2me-0.1.3.tar.gz -
Subject digest:
7dce72814354d09420cb2f3ac82a79d4bba43eb34d223a241103a84ba540889f - Sigstore transparency entry: 2505464186
- Sigstore integration time:
-
Permalink:
tribulnation/typed@def1a9a456b1149327b29c055ec5691538d7a2a7 -
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-bit2me.yml@def1a9a456b1149327b29c055ec5691538d7a2a7 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_bit2me-0.1.3-py3-none-any.whl.
File metadata
- Download URL: typed_bit2me-0.1.3-py3-none-any.whl
- Upload date:
- Size: 143.6 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 |
e09ad651706263a5721027685a4302e6b6f423668ff66944081454f0d99f205c
|
|
| MD5 |
14651d9ed240db4286ed52bef8e57f81
|
|
| BLAKE2b-256 |
2d229cf49e1f52266e2eb1828532f02e15de16e5047a54736837c6d400bb459b
|
Provenance
The following attestation bundles were made for typed_bit2me-0.1.3-py3-none-any.whl:
Publisher:
release-bit2me.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_bit2me-0.1.3-py3-none-any.whl -
Subject digest:
e09ad651706263a5721027685a4302e6b6f423668ff66944081454f0d99f205c - Sigstore transparency entry: 2505465305
- Sigstore integration time:
-
Permalink:
tribulnation/typed@def1a9a456b1149327b29c055ec5691538d7a2a7 -
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-bit2me.yml@def1a9a456b1149327b29c055ec5691538d7a2a7 -
Trigger Event:
pull_request
-
Statement type: