Skip to main content

Typed Binance

A fully typed, validated async client for the Binance API.

PyPI version Python versions Docs License



from binance import Binance

async with Binance.new(public=True) as client:
  price = await client.spot.market.ticker_price(symbol='BTCUSDT')
  print(price)

Why Typed Binance?

  • 🎯 Precise Types: every spot, USD-M futures, COIN-M futures, options, and portfolio margin parameter and response is a precise Python type, not dict/Any.
  • ✅ Runtime Validation: every response is validated against its schema by default, not just typed on paper.
  • ⚡ Async First: async HTTP requests and WebSocket market-data streams, built for concurrent workflows across every product line.
  • 📚 Full Surface: every documented spot, futures, options, and portfolio margin endpoint, not just the popular ones.

Installation

pip install typed-binance

How To

Reference

Design Philosophy

Typed Binance 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_binance-0.2.3.tar.gz (439.4 kB view details)

Uploaded Source

Built Distribution

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

typed_binance-0.2.3-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file typed_binance-0.2.3.tar.gz.

File metadata

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

File hashes

Hashes for typed_binance-0.2.3.tar.gz
Algorithm Hash digest
SHA256 aab575a54ea3d5b85c3a374b829d71bcd89e21d3be96e3e8b59728bdb7dc0bad
MD5 aa9540288534c4f1e32295274bb8b656
BLAKE2b-256 49f6d199c44529f1ab16da788c82d5465993cc6c8768b46486411c90c3cf5075

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_binance-0.2.3.tar.gz:

Publisher: release-binance.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_binance-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: typed_binance-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for typed_binance-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 623db3f2111d4db04c67e4ba2d9a7fd385f0fdba1704d3565b1831de0c3bfae1
MD5 e9f445d614a05ecce83a4f4f5ec67a2c
BLAKE2b-256 190a49487d465899db8e4a8f1a2a89fbc6365459d94623e26ca0120c5d1b4a3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for typed_binance-0.2.3-py3-none-any.whl:

Publisher: release-binance.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

1.0.0

2 files

This release

0.2.3 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

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