🦾 A python3 binance API wrapper powered by asyncio and python Decimals.
Get binance.py
To install the library, you can just run the following command:
# Linux/macOS
python3 -m pip install -U binance.py
# Windows
py -3 -m pip install -U binance.py
Alternatively you can build the package and install it manually:
python setup.py sdist bdist_wheel
python -m pip install dist/binance.py-X.X.X-py3-none-any.whl
Why binance.py?
The binance api is complex to grasp and using a wrapper saves time but also ensures that the right practices are adopted. Binance.py offers a modern and asynchronous solution.
Features
- Covers general endpoints (test connectivity and get exchange informations)
- Covers market data endpoints
- Covers Account endpoints (create and manage orders)
- Covers user data stream (receive real time user updates)
- Covers web socket streams (receive real time market updates)
- Async support
- Completely free and without limitations
What it does not
- Binance.py does not cover the withdraw API
- Binance.py does not cover the margin trading API
If you need these features, don't open an issue to ask me to implement them
Get started
- Generate an API Key and assign relevant permissions.
- import binance, create a client and send your first test order:
import binance
client = binance.Client(API_KEY, API_SECRET)
await client.load()
order = await client.create_order(
"ETHPAX", binance.Side.BUY.value, binance.OrderType.MARKET.value, quantity="1", test=True,
)
print(order)
await client.close()
- Check some examples
License
Donate
- ETH (ENS):
thomas.ethers.xyz - ETH (legacy address):
0x54c5a92c57A07f33500Ec9977797219D70D506C9 - BTC:
bc1qm9g2k3fznl2a9vghnpnwem87p03txl4y5lahyu
Powered by binance.py
martin binance
Free trading system for Binance SPOT market. Adaptive customizable reverse grid strategy based on martingale.
Metadata
Release files for binance.py 1.9.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 | |
|---|---|---|---|---|
| binance.py-1.9.0.tar.gz | 13.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| binance.py-1.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.4 kB
Release files / binance.py-1.9.0.tar.gz
| Download URL | binance.py-1.9.0.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6639dbc8304859356b3161fbbe57cc7b6b185fefb63647ae514cd6a808fdef8
|
|
BLAKE2b-256 checksum How to use checksums |
29431303a389b78466fcedf915fe05e2d12082dd8115e7a7857325ebc97d0078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9
|
Release files / binance.py-1.9.0-py3-none-any.whl
| Download URL | binance.py-1.9.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdaa49f93fc89d2068276ee18da4edd44770bc19fb5157d56aa912a2b9546e05
|
|
BLAKE2b-256 checksum How to use checksums |
c587981e0575acf6a1257529f757e49707f7ca375bc523d96d1bdd48f4a9be1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9
|
Security for binance.py 1.9.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.