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.6.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.6.0
File Size Uploaded
typed_bit2me-0.6.0.tar.gz 91.3 kB Details

Built distribution (wheel)

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

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.0

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