A python3 binance API wrapper powered by modern technologies such as asyncio
Project description
🦾 A python3 binance API wrapper powered by modern technologies such as asyncio.
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
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 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", Side.BUY.value, OrderType.MARKET.value, quantity=1, test=True,
)
print(order)
- Check some examples
License
Donate
- ETH (ENS):
thomas.ethers.xyz
- ETH (legacy address):
0x54c5a92c57A07f33500Ec9977797219D70D506C9
- BTC:
bc1qm9g2k3fznl2a9vghnpnwem87p03txl4y5lahyu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
binance.py-0.2.1.tar.gz
(11.0 kB
view hashes)
Built Distribution
binance.py-0.2.1-py3-none-any.whl
(11.7 kB
view hashes)
Close
Hashes for binance.py-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4696a9a433967951d7f8c7e2918c241fa054811e8490154c551c991b89a36b57 |
|
MD5 | afc278197dfa507459da0c0a0ee61b4e |
|
BLAKE2b-256 | 5a15e832fdfcb992ec2095df0735809e6f1b47b49db38ab844e3644d373fe285 |