Skip to main content

Typed Bit2Me

A fully typed, validated async client for the Bit2Me API.

PyPI version Python versions Docs License



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; Decimal for prices and amounts; a full TypedDict per 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/v3 REST surface (trading, wallet, account, earn, and more), not just tickers.

Installation

pip install typed-bit2me

How To

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.5.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-bit2me 0.5.0
File Size Uploaded
typed_bit2me-0.5.0.tar.gz 91.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for typed-bit2me 0.5.0
File Interpreter ABI Platform
typed_bit2me-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 275.9 kB

Release files / typed_bit2me-0.5.0.tar.gz

Download URL typed_bit2me-0.5.0.tar.gz
Size 91.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d427b1c96846d7f7dcd4a879bff1ca679c3f7260e098dd7b02c82f9779dff568
BLAKE2b-256 checksum
How to use checksums
47dbb152794a50b90756eadbfbd0b027338b9638c444760712b0b79a90d2338b
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 Sep 20, 2026.

Transparency log

Release files / typed_bit2me-0.5.0-py3-none-any.whl

Download URL typed_bit2me-0.5.0-py3-none-any.whl
Size 184.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed6b4b29b5bad0c06a7471d132c3d0d6f95aa95679682d3169a6b53e32d83147
BLAKE2b-256 checksum
How to use checksums
705adbec60f117ce90e30089ee06a722b3c9b2f32f5713baa68a5d3b01abeb0a
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 Sep 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.0

2 release files

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

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