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.4.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.4.0
File Size Uploaded
typed_bit2me-0.4.0.tar.gz 90.8 kB Details

Built distribution (wheel)

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

Total release size: 275.3 kB

Release files / typed_bit2me-0.4.0.tar.gz

Download URL typed_bit2me-0.4.0.tar.gz
Size 90.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ef7bc6c60ddf0c06cde31b2b205543739e7afe325d7ea3dc723feaf800bf48f5
BLAKE2b-256 checksum
How to use checksums
840ca2246f1f887d4542ea042c58f0e1de5b2638cb936fb54e0a3a1fd7a9719d
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 10, 2026.

Transparency log

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

Download URL typed_bit2me-0.4.0-py3-none-any.whl
Size 184.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1264073a876d25223d7e7df75fe9e0e436a627f306aba0940047f3ca8d59428
BLAKE2b-256 checksum
How to use checksums
4060ac6208140f2d5810a98227648611d67a94e5bb123e23545e5f21e6479c2d
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.0

2 release files

This release

0.4.0 This release

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