Typed Binance
A fully typed, validated async client for the Binance API.
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?
- Typed everything: every parameter and response is a precise Python type, not
dict[str, Any]. - Validated by default: responses are checked against their schema at runtime.
- Async first: built on
asyncio, with async iterators for paginated endpoints and streaming subscriptions. - One client, every product: spot, USD-M futures, COIN-M futures, options, and portfolio margin all live on one
Binanceinstance, alongside their WebSocket market-data streams and WS APIs.
Installation
pip install typed-binance
Documentation
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typed_binance-0.2.0.tar.gz.
File metadata
- Download URL: typed_binance-0.2.0.tar.gz
- Upload date:
- Size: 436.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96323e5071faf5738358a5aaea38226e9413600c3603b10738bba68c82e6da72
|
|
| MD5 |
d51177787b1e9df2ca7c31920e43bbfb
|
|
| BLAKE2b-256 |
240c24a148d657f17fdd64d51b868738af90c38d1a7a2be9b748a659b2154ea0
|
Provenance
The following attestation bundles were made for typed_binance-0.2.0.tar.gz:
Publisher:
release-binance.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_binance-0.2.0.tar.gz -
Subject digest:
96323e5071faf5738358a5aaea38226e9413600c3603b10738bba68c82e6da72 - Sigstore transparency entry: 2501270659
- Sigstore integration time:
-
Permalink:
tribulnation/typed@83f75885c31ec936e5f505be8b912a228f5af4f2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-binance.yml@83f75885c31ec936e5f505be8b912a228f5af4f2 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file typed_binance-0.2.0-py3-none-any.whl.
File metadata
- Download URL: typed_binance-0.2.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c44c21ce3d779213a26ee9d63c90cbfecb75a5a8fa1cab89d694a0537a94118
|
|
| MD5 |
5563153017c365b6684752a0fb2f1c70
|
|
| BLAKE2b-256 |
6cd35191fdc4bda3866538967b3f691240663aaa2ee245624c927ddd0079522e
|
Provenance
The following attestation bundles were made for typed_binance-0.2.0-py3-none-any.whl:
Publisher:
release-binance.yml on tribulnation/typed
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
typed_binance-0.2.0-py3-none-any.whl -
Subject digest:
0c44c21ce3d779213a26ee9d63c90cbfecb75a5a8fa1cab89d694a0537a94118 - Sigstore transparency entry: 2501270701
- Sigstore integration time:
-
Permalink:
tribulnation/typed@83f75885c31ec936e5f505be8b912a228f5af4f2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/tribulnation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-binance.yml@83f75885c31ec936e5f505be8b912a228f5af4f2 -
Trigger Event:
pull_request
-
Statement type: