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 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

typed_bit2me-0.1.4.tar.gz (70.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typed_bit2me-0.1.4-py3-none-any.whl (144.1 kB view details)

Uploaded Python 3

File details

Details for the file typed_bit2me-0.1.4.tar.gz.

File metadata

  • Download URL: typed_bit2me-0.1.4.tar.gz
  • Upload date:
  • Size: 70.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_bit2me-0.1.4.tar.gz
Algorithm Hash digest
SHA256 53b61730480e1665d78ebd663b90391b39951a30cc5bf551c64b63535ff29c3b
MD5 593a6bbef57311245bbfda27d60ea4d2
BLAKE2b-256 2fca33a12ec4a0fcce8d20560be0685316e885a5b25723e74b68e601c9baff8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bit2me-0.1.4.tar.gz:

Publisher: release-bit2me.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file typed_bit2me-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: typed_bit2me-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 144.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_bit2me-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d0b0f045a5788797cab4f2a9d0f47974c33e518d4d4dc8b27cab7c0350ba8428
MD5 f2b7cb7df649c3b9f8c8c1457eecd9e3
BLAKE2b-256 c6b85e55f2db51ccc0194b95178cc702ac3803cfd01a2b9dfd6499fde71cb0ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bit2me-0.1.4-py3-none-any.whl:

Publisher: release-bit2me.yml on tribulnation/typed

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.0

2 files

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page