Skip to main content

A python3 binance API wrapper powered by modern technologies such as asyncio

Project description


Binance.py logo

🦾 A python3 binance API wrapper powered by asyncio and python Decimals.

Language grade: Python

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 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", Side.BUY.value, OrderType.MARKET.value, quantity="1", test=True,
)
print(order)

License

FOSSA Status

Donate

  • ETH (ENS): thomas.ethers.xyz
  • ETH (legacy address): 0x54c5a92c57A07f33500Ec9977797219D70D506C9
  • BTC: bc1qm9g2k3fznl2a9vghnpnwem87p03txl4y5lahyu

Project details


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-1.7.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

binance.py-1.7.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file binance.py-1.7.0.tar.gz.

File metadata

  • Download URL: binance.py-1.7.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20201211 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for binance.py-1.7.0.tar.gz
Algorithm Hash digest
SHA256 649233aefdeb43ada4543b6b3b52d0575160eba5df3eca662af645e90feda906
MD5 fbe67676456c8e3b4bb78f10f5675864
BLAKE2b-256 7dde2bb48eadd0c743b24c5ccb9399de080ce8347baae3ca1cd9f22f788e0ea3

See more details on using hashes here.

File details

Details for the file binance.py-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: binance.py-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1.post20201211 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for binance.py-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1e184fdc8ae4caa1620e44b4faaaec2ff38c6325e3eac9ad8e453da32137fb2
MD5 530ba128277ded3d6915b72efd75743a
BLAKE2b-256 4ff73691a6467b01b88e7f6565e153d9bdfb8804bbac868e637c357b607d8d3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page