# Creating a Binance Key

{% embed url="<https://youtu.be/be5tmsZYviQ>" %}
Follow our step by step guide on creating and adding your Binance API keys (updated for 2024)
{% endembed %}

<figure><img src="/files/DnxZz5TMcnzhRlWKOzAW" alt=""><figcaption></figcaption></figure>

On your Account page, on the left side, click on **Api Management:**<br>

<figure><img src="/files/cY0xM2rEH9sRLHfYO8bx" alt=""><figcaption></figcaption></figure>

Click the **"Create API"** button and then once the key is created, click **"Edit Restrictions".**&#x20;

Please ensure:

* The key has checked **"Enable Spot & Margin Trading"**
* The key has checked **"Enable Futures"**
* The key does **not** have withdrawal access for your security

{% hint style="success" %}
We have enabled Spot-Only API keys for those users who can't enable Futures for their API keys due to their regional restrictions. You simply need to enable only "Spot & Margin Trading"
{% endhint %}

If you can't edit those, you will have to uncheck the "**Default Security Controls"**, which you find above.

### IP Access Restrictions

For better key security, we recommend you select **"Restrict access to trusted IPs only"** and whitelist our server IPs. Hover over the box below and press the 'copy' button on the right to copy the text.

```
45.32.51.91 202.182.118.247 149.28.26.187 108.61.181.242 66.42.35.121 167.179.113.62 108.61.201.196 45.32.15.26 45.32.46.51 66.42.32.45 45.32.21.44 45.32.248.74 167.179.72.59 45.76.215.92 198.13.32.237 108.160.143.252 167.179.71.160 139.180.206.70 45.32.56.13 45.76.96.149 66.42.40.230 167.179.116.54 45.76.212.66 45.76.105.105 66.42.43.7 45.76.215.145 45.32.22.39 167.179.91.213 149.28.18.241 139.180.204.250 202.182.97.74 139.180.205.136 202.182.106.58 108.61.163.146 45.77.179.79
```

{% hint style="info" %}
It's important you copy and paste **all** of the IPs. There are 35 in total.
{% endhint %}

Now on Binance after selecting the **"Restrict.. "** option, paste the above IP list text into the box provided as shown below and click on **Confirm**:

<figure><img src="/files/U9Ifh7CaZ02RFcY1LvMl" alt=""><figcaption></figcaption></figure>

Click **Save** and add your key to the [Terminal API Key input form](/documentation/setup/adding-your-api-key-to-the-terminal.md). Note you may also use the Terminal in **Unrestricted** mode.

### Adding a SPOT ONLY VIDEO:

{% embed url="<https://www.youtube.com/watch?v=alGLW3U30Sc>" %}
You can now add a SPOT-ONLY account for binance by following the above instructions
{% endembed %}

You can now add a **SPOT-ONLY** account to the terminal by following the same guide as previously but checking the "Enable spot & Margin" box only whilst editing restrictions.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.insilicoterminal.com/documentation/setup/creating-an-api-key/creating-a-binance-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
