> For the complete documentation index, see [llms.txt](https://th0rgal.gitbook.io/binance-py/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://th0rgal.gitbook.io/binance-py/master.md).

# Getting started

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

## Installing binance.py

Installing binance.py is a fairly straight forward process:

```
pip install binance.py
```

{% hint style="info" %}
binance.py requires python 3.6 or superior
{% endhint %}

### Setup a client

* [Generate an API Key](https://www.binance.com/en/support/articles/360002502072) and assign relevant permissions.
* [Load your keys](/binance-py/manage-your-keys.md) from a config
* Load the client (it is not mandatory but this is highly recommended)
* Send your first request

```python
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
print(order)
await client.close()
```

{% hint style="warning" %}
Don't forget to close the client after you are done with it using `client.close()`
{% endhint %}
