Getting started

How to install and send your first request to the binance API


Installing is a fairly straight forward process:

pip install requires python 3.6 or superior

Setup a client

  • Generate an API Key and assign relevant permissions.

  • Load your keys from a config

  • Load the client (it is not mandatory but this is highly recommended)

  • Send your first request

import binance
client = binance.Client(API_KEY, API_SECRET)
await client.load()
order = await client.create_order(
"ETHPAX", Side.BUY, OrderType.MARKET, quantity=1, test=True,
) # this will fake a buy of one ETH with your PAX balance