A fully typed, validated async client for the Binance API.
- Documentation: https://tribulnation.com/typed/binance
- Source Code: https://github.com/tribulnation/typed/tree/main/packages/binance
from typed_binance import Binance
async with Binance.new(public=True) as client:
price = await client.spot.http.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
- Fetch Market Data — public prices, order books, and candles
- Listen To Streams — subscribe to market data and account event streams
- Place & Manage Orders — submit, query, cancel, and list spot orders
- Fetch Account Data — balances, positions, and trade history
- Query & Manage Earn Instruments — Simple Earn products, positions, subscribe, and redeem
- Manage Deposits & Withdrawals — deposit addresses/history and withdrawals
- Paginate Through Results — walk a time range across multiple pages
Reference
Design Philosophy
Typed Binance follows the principles outlined in this blog post.
Details matter. Developer experience matters.
License
MIT — see LICENSE.
Metadata
Release files for typed-binance 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| typed_binance-1.5.0.tar.gz | 540.7 kB | With provenance | Details for typed_binance-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| typed_binance-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for typed_binance-1.5.0-py3-none-any.whl |
Total release size: 2.1 MB
Release files / typed_binance-1.5.0.tar.gz
| Download URL | typed_binance-1.5.0.tar.gz |
|---|---|
| Size | 540.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9080e53c388c1848bd832ae74d28602ace62ef11ae233d3adec97b387e2678e
|
|
BLAKE2b-256 checksum How to use checksums |
9b3e8e3941ba7bd987adc6fd6b46e88497e06053de6b006c40516cce28a5a1c7
|
| 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 Oct 19, 2026.
Transparency logRelease files / typed_binance-1.5.0-py3-none-any.whl
| Download URL | typed_binance-1.5.0-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aedee7c717cfab2390091c9d7766db188dc65d7f7c6f3aeb912f9eaf54e5824c
|
|
BLAKE2b-256 checksum How to use checksums |
bbbc03797707a1114b8dd4246dfb28d576dd12e6a93104d3dea8e29acf150d15
|
| 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 Oct 19, 2026.
Transparency logSecurity for typed-binance 1.5.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for typed_binance-1.5.0.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 Oct 19, 2026.
Transparency logA 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.