# 1.4.1 Binance API Binding Tutorial

**For security reasons, the API secret will be displayed only 1 time. After closing the window, the API-secret will not be available, so copy the key in time.**

First you need to go to the official website of the exchange: <https://www.binance.com/en>

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

After successful login or registration, click on the "Account" in the left menu and select "API Management".&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FU43kC9PIBtzlnj1NlHXV%2FBinance%201.png?alt=media&#x26;token=a76e25e7-2cd8-40f6-a0ed-5f5369d8d259" alt=""><figcaption></figcaption></figure>

In this section, click on the ''Create API'' button.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2Fgj6sNKroinVY2cVs21Yg%2Fbinance%202.png?alt=media&#x26;token=ceb0c686-8dbd-4996-a79e-c5a9d3e0347a" alt=""><figcaption></figcaption></figure>

Select the key type as ''System Generated'' and click ''Next''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2Fkc0nNNoEwCeSrharrE94%2FBinance%203.png?alt=media&#x26;token=dec09a58-0b6a-458b-bf3f-25b4dcd1b948" alt=""><figcaption></figcaption></figure>

The "Create API" window will appear, where you should name your API key. Click "Next" to proceed to the next step.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FrrfwP4AqVpqWVkSF3nsp%2FBinance%204.png?alt=media&#x26;token=ef57e0b8-9491-4e09-ac70-6d73daf086e0" alt=""><figcaption></figcaption></figure>

After the name of the API key, a security check window follows. Make sure you have Google's two-factor authentication.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FKZeLf7ILKms0rmimKCun%2FBinance%205.png?alt=media&#x26;token=f35ef76e-722a-47a2-83dc-c011303ca6e0" alt=""><figcaption></figcaption></figure>

Next, disable the security controls and click on ''Edit Restrictions'' to finalize the final API key settings.

**Please note that if you disable security controls, you will need to pass Google's two-factor authentication.**

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2Frn0IXz6l1FrwtH306zdX%2FBinance%206.png?alt=media&#x26;token=a77ad77c-f442-4807-b8d4-a30d34df0252" alt=""><figcaption></figcaption></figure>

In the settings below under ''API Restrictions'', select ''Enable spot & Margin trading''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FEQusbI16P08NduHS2E9D%2FBinance%207.png?alt=media&#x26;token=cd75e085-be47-43c0-9432-a8d61da87239" alt=""><figcaption></figcaption></figure>

In the "IP Access Restrictions" section, select ''Restrict access to trusted IPs only''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F9C7iBYA7ju8oKY8m5C9U%2FBinance%208.png?alt=media&#x26;token=3b36c11e-2bcf-4063-b336-903520b7b932" alt=""><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%2FfqvJqRBWyFjsPQEhiOXa%2Fimage.png?alt=media&#x26;token=521d44f9-87cf-407f-a1be-a8f1ab57a410" alt="" width="375"><figcaption></figcaption></figure>

Choose the Binance exchange.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F3deGUqvZ73kyS4S8H1EN%2Fimage.png?alt=media&#x26;token=7b5cf307-c090-447a-9b88-3ffcf0f0743a" alt="" width="375"><figcaption></figcaption></figure>

Copy the IP-addresses.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FUjQungLi9ZjwpEamqU12%2Fimage.png?alt=media&#x26;token=bd57f556-04f8-44cc-94f0-dfefc3adcda7" alt="" width="375"><figcaption></figcaption></figure>

Go back to the exchange website and in the section that appears, paste the IP addresses copied from the Hash7 app and click ''Confirm''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FeqlWp0mhjcpknLUGuGdj%2FBinance%209.png?alt=media&#x26;token=fee010b0-fe4e-46ed-af81-dadce03b06c4" alt=""><figcaption></figcaption></figure>

Once you have pasted the IP addresses, copy your API Key and API Secret to a safe place and click on ''Save''.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FCAdYw2qUMaAQFzOJq7h9%2FBinance%2010.png?alt=media&#x26;token=ad830cfa-fecf-4fc2-849d-7cf0efc8e80b" alt=""><figcaption></figcaption></figure>

You will need to go through Google's two-factor authentication to save the changes you've made to your key settings.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F28T1r2rikqlnEBX73Esa%2FBinance%2011.png?alt=media&#x26;token=0ddecca4-7e4b-4118-8757-574f6349ced6" alt=""><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%2FepUOI77ABLyNNp6Ae23b%2Fimage.png?alt=media&#x26;token=4ea5560d-e574-4b6f-8ea4-bad9abad93b1" alt="" width="375"><figcaption></figcaption></figure>

❗️❗️**Please note that in order to provide an additional degree of security, after creating an API-key it is necessary to specify in the settings exactly those trading pairs on which trading will be performed❗️**❗️
