Skip to main content

Typed Bit2Me

Fully typed, validated async client for the Bit2Me API: REST trading, wallet, and earn, plus both Bit2Me WebSocket surfaces.

Use autocomplete instead of documentation.

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

Documentation

  • Getting Started: install the package and configure credentials
  • How To: task-focused guides for market data, streams, orders, accounts, earn, and funds
  • Reference: async usage, error handling, and environment variables

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.3.tar.gz (69.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.3-py3-none-any.whl (143.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: typed_bit2me-0.1.3.tar.gz
  • Upload date:
  • Size: 69.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.3.tar.gz
Algorithm Hash digest
SHA256 7dce72814354d09420cb2f3ac82a79d4bba43eb34d223a241103a84ba540889f
MD5 8eff719bd1eab379c47f1092303ff46e
BLAKE2b-256 eb1a133af6c8b9e60311212ff629e4280f511d5daaf1fbaa24dbe0c2fd417aee

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: typed_bit2me-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 143.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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e09ad651706263a5721027685a4302e6b6f423668ff66944081454f0d99f205c
MD5 14651d9ed240db4286ed52bef8e57f81
BLAKE2b-256 2d229cf49e1f52266e2eb1828532f02e15de16e5047a54736837c6d400bb459b

See more details on using hashes here.

Provenance

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

0.1.4

2 files

This release

0.1.3 This release

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