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

Metadata

Release files for typed-bit2me 0.1.3

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.1.3
File Size Uploaded Provenance Actions
typed_bit2me-0.1.3.tar.gz 69.9 kB With provenance Details for typed_bit2me-0.1.3.tar.gz

Built distribution (wheel)

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

Total release size: 213.5 kB

Release files / typed_bit2me-0.1.3.tar.gz

Download URL typed_bit2me-0.1.3.tar.gz
Size 69.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7dce72814354d09420cb2f3ac82a79d4bba43eb34d223a241103a84ba540889f
BLAKE2b-256 checksum
How to use checksums
eb1a133af6c8b9e60311212ff629e4280f511d5daaf1fbaa24dbe0c2fd417aee
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 Aug 18, 2026.

Transparency log

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

Download URL typed_bit2me-0.1.3-py3-none-any.whl
Size 143.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e09ad651706263a5721027685a4302e6b6f423668ff66944081454f0d99f205c
BLAKE2b-256 checksum
How to use checksums
2d229cf49e1f52266e2eb1828532f02e15de16e5047a54736837c6d400bb459b
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 Aug 18, 2026.

Transparency log

Security for typed-bit2me 0.1.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for typed_bit2me-0.1.3.tar.gz

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 Aug 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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