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.

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.3.0.tar.gz (73.3 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.3.0-py3-none-any.whl (156.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_bit2me-0.3.0.tar.gz
  • Upload date:
  • Size: 73.3 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.3.0.tar.gz
Algorithm Hash digest
SHA256 2ead9c223e2a89b89d5981b381f83ab815c88b0fa1715f223136d4e591f14477
MD5 68d7d19dd2c10061cc1e91c0bcd70a42
BLAKE2b-256 c869d08e0d44ad8df4d908a7cbc9de86aa5d1bb18912cc9d4d8cce9883c08903

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bit2me-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: typed_bit2me-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 156.6 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0cc7b4f66355910cb866dd5e6672a7a2ac9697ff5511d9bf93206cca1dc42f7
MD5 a4f116b9b00bfbb936df8f7d6474de1e
BLAKE2b-256 6195ea62f17e5db9b8bb4ce653f47c423d93ec36568c92b12c8571eddc7569ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_bit2me-0.3.0-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

This release

0.3.0 This release

2 files

0.1.4

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