Python binance API wrapper
Project description
This is an asynchronous Python wrapper for Binance exchange API.
Features
- Implementation of all general, market, spot and websocket endpoints
- Easy to contribute and use
- Fully typed
Installation
pip install -U binance4py
Quick Start
import asyncio
from binance4py import Binance
async def handle_kline(k):
print(k)
async def main():
client = Binance("<API_KEY>", "<API_SECRET>")
async with client:
print(await client.general.server_time())
client.ws.kline("btcbusd", "1m", handle_kline)
await client.ws.start()
asyncio.run(main())
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
binance4py-1.0.0b0.tar.gz
(8.9 kB
view hashes)
Built Distribution
Close
Hashes for binance4py-1.0.0b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 850c8489e703619ec1990c070074f1d3a8bf7e11fb1f95bccc50a910c8d8ad84 |
|
MD5 | 45c9f192fcf7a47c936246f9adebb707 |
|
BLAKE2b-256 | f1e71a4ea859da07dbbd73100b8854c721e6dd1a524ed82ce652dcc8ba672d7c |