# 1.3.1 Binance API Binding Tutorial

{% embed url="<https://www.youtube.com/watch?v=IeUhp44SG1E>" %}

For security reasons, the API key will be displayed only 1 time. After closing the window, the API will not be available. Make sure to save the key in a safe place.

If you are already a registered user, then log in to your existing account on the exchange. If you don't have an account, you'll need to register first.

After successfully logging in or registering, go to the official Binance app, first you need to change your account to "Binance Pro" mode.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FtUQIxaKwVlzUZnAPOxX5%2F1.png?alt=media&#x26;token=f9a712e3-eb5c-47cd-883b-2da2c5c8314b" alt="" width="375"><figcaption></figcaption></figure>

In the Pro mode, press on the ''More Services'' section to open the full menu.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FnmclvynZYp0VGYgNuzVK%2F2.png?alt=media&#x26;token=b8a556e5-218e-4d3f-a67e-2b395c3acb8a" alt="" width="375"><figcaption></figcaption></figure>

In the menu, you need to scroll down to the ''Others'' section and press on the ''API Management''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FkGZ498JrMmAvFM9Fat3v%2F3.png?alt=media&#x26;token=17a8d49a-894a-479e-85d5-fcb0b00d6110" alt="" width="375"><figcaption></figcaption></figure>

In this section, you need to press on the ''Create API'' and select "System generated'' key type.

<div><figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FOsZa4y3C5VMtl1vnQMvk%2F4.png?alt=media&#x26;token=d372119a-cad0-43db-bbe9-9c69454f3477" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F9AF4lY50YCr8RkVCDCIc%2F5.png?alt=media&#x26;token=2eff3a05-3a63-4924-a170-8f75e2a44942" alt="" width="375"><figcaption></figcaption></figure></div>

Next, a ''Create API'' window will appear, where you need to name your API key. Then press on ''Next'' to continue.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FxPg0vjHMdCxqkymbtq18%2F21.png?alt=media&#x26;token=8a722c8a-19fb-4581-85b9-da95c013d9da" alt="" width="375"><figcaption></figcaption></figure>

After key naming, a ''Security Verification'' window will appear. **When doing the Security Verification, make sure that you have the two-factor authentication from Google.**

If data entered correctly, your API key has been successfully created! For the full information display press on the arrow below and on the ''Edit'' button.

The next steps are to:&#x20;

1. Turn off the  Default Security Controls;&#x20;
2. Click on ''Edit'' to complete the final settings of the API key;
3. Expand the window with the generated key;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F98sOddhEhxXJwOnSvr7y%2F7.png?alt=media&#x26;token=65767d5f-ae75-41cb-842b-b819cb290071" alt="" width="375"><figcaption></figcaption></figure>

In the settings, below ''API Restrictions'' section, check ''Enable Spot & Margin Trading''.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FOJGnB7i2BGSItcEQulAo%2F8.png?alt=media&#x26;token=6091995f-3501-440d-a0e5-b5d88ebe29aa" alt="" width="375"><figcaption></figcaption></figure>

By scrolling down in these same settings, check ''Restrict access to trusted IPs only''.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FYmnhsPyPPdpJIQPOJ44Z%2FFrame%203875.png?alt=media&#x26;token=04b75e11-1552-490b-b02d-f7ea6a78824b" alt="" width="375"><figcaption></figcaption></figure>

Then, open the Hash7 app. In the upper left corner, click on ''Exchange''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FneN8E6Q77IAVei73rKrA%2Fex.png?alt=media&#x26;token=a8a6d2b3-3e95-48e9-b660-043d71fdb53e" alt="" width="375"><figcaption></figcaption></figure>

Choose the Binance exchange.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FsyPemTFM0tk0LWavZwrD%2Fip%20binance.png?alt=media&#x26;token=0f8b085a-04c6-49b1-94b5-d52caf52a8c4" alt="" width="375"><figcaption></figcaption></figure>

Copy the IP-addresses.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F2dJtU1nnM4l6tBScd0Lu%2Fip%20binance%20vis.png?alt=media&#x26;token=94a750d7-be9f-4820-a0b0-c9fe6b5f2a3e" alt="" width="375"><figcaption></figcaption></figure>

Return to the exchange app, paste the copied IP-addresses from the Hash7 app and press ''Confirm''.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FY6KqijCJ4iZxLeYOZLLV%2Fimage.png?alt=media&#x26;token=1daf4a9c-d9e2-4874-a523-16c7f219163c" alt="" width="375"><figcaption></figcaption></figure>

After you've entered the IP-addresses, scroll up and copy your API Key and API Secret and press ''Save''.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FbroAIvWrqrU3oJtDaQx6%2F10.png?alt=media&#x26;token=c8d3544b-e9a8-44a7-ade1-3344e7aea0d8" alt="" width="375"><figcaption></figcaption></figure>

Then reopen the Hash7 app and paste the copied keys into the appropriate fields. To complete the process, click on the "Done" button.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FMRruNHORN19SW0MQp4zX%2Fip%20binance%20vis%2B.png?alt=media&#x26;token=a6fe7b17-066e-4bea-90ce-2672419134df" alt="" width="375"><figcaption></figcaption></figure>

❗️❗️**Please note that in order&#x20;**<mark style="color:purple;">**to provide an additional degree of security**</mark>**, after creating an API-key it is necessary to specify in the settings exactly those trading pairs on which trading will be performed❗️**❗️

👉 *Tutorial on how to add trading assets to whitelist is available* [*<mark style="color:purple;">**here.**</mark>* ](https://hash7-gitbook.gitbook.io/en/user-guide/1.3-api-binding-tutorial/1.3.1-binance-api-binding-tutorial/binance-whitelist-assets-adding)
