# 1.4.2 Bybit 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 site of the exchange: <https://www.bybit.com/en/>

<mark style="background-color:red;">**❗We strongly recommend switching to the Unified Trading Account (UTA), as the Standard account type stops supporting work through the API, which can affect the correct, stable operation of strategies and the frequency of errors in them❗**</mark>

<mark style="background-color:red;">**You can switch to the Unified Trading Account using the**</mark> [<mark style="background-color:red;">**this link.**</mark>](https://www.bybit.com/ru-RU/promo/events/unified-trading-account)

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

After successful login or registration, you need to click on the icon at the very top of the website.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FRS9RpS7qo50nJJZmR6Ph%2FBybit%201.png?alt=media&#x26;token=99d27f09-291d-40cb-ac04-df9c2d66f6b6" alt=""><figcaption></figcaption></figure>

In the list that appears, click on "API".&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FtDAwSsu0yX05lymmT9i9%2FBybit%202.png?alt=media&#x26;token=956a6f3a-bfc3-4808-83ca-f72bbfcd44e7" alt=""><figcaption></figcaption></figure>

Next you need to click on "Create New key".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2Fc2kuVWNe3yGfXOQGmMda%2FBybit%203.png?alt=media&#x26;token=2cc982ff-7f10-44eb-b52e-bb0abb4a6ee3" alt=""><figcaption></figcaption></figure>

In the window that appears, select "System-generated API Keys".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FwnTKV8laTKty1CeJpbyP%2FBybit%204.png?alt=media&#x26;token=9fe1b0b4-bd2e-410c-a121-00d81050bb0f" alt=""><figcaption></figcaption></figure>

Next, you will need to select "API Transaction".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FSSqSEduJltXt9bnRvOUt%2FBybit%205.png?alt=media&#x26;token=aa1b5140-0cbc-4872-9ba2-7011f7b279c6" alt=""><figcaption></figcaption></figure>

In the "Name for the API Key" section, name your API key.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F3ot3CiqnPrIrRhm9xHkV%2FBybit%206.png?alt=media&#x26;token=bcadbd15-7ac1-4a6a-9877-d2675122a71f" alt=""><figcaption></figcaption></figure>

In the "API Kay Permissions" section, select "Read-Write".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FaW2HlYifoNOSWQJa7fKi%2FBybit%207.png?alt=media&#x26;token=e388d8b4-1038-464a-ae06-ce2644646c70" alt=""><figcaption></figcaption></figure>

Select "Only IPs with permissions granted are allowed access to OpenAPI".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FVW8Cll5DauMyJ98eQ3TG%2FBybit%208.png?alt=media&#x26;token=767f91a5-7c2b-4e0e-b75e-e8f75503966c" 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%2F2z7DM8l9QeyxZLWT5wc6%2Fex.png?alt=media&#x26;token=4a529507-9d2c-4da2-a073-f253696be80e" alt="" width="375"><figcaption></figcaption></figure>

Choose Bybit exchange.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FLLL91y2keaID5qDg5jbP%2Fimage.png?alt=media&#x26;token=741f8180-b746-40bf-9c12-d05cc976e0cb" 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%2FKRn3iZx1nmvcRIwgRO5D%2Fimage.png?alt=media&#x26;token=ce876219-3ccc-4c74-91f9-552481749f96" alt="" width="375"><figcaption></figcaption></figure>

Return to the exchange website and paste the copied IP-addresses from the Hash7 app.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FrttfzVrvIB1B1LjvlmhR%2FBybit%209.png?alt=media&#x26;token=ba52d1d8-53bc-45b5-ba87-9528fe89d0e0" alt=""><figcaption></figcaption></figure>

Scroll down the page below - here you will need to select "Unified Trading" and click on "Submit".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FxEpxJxvkJprY4LIU1L47%2FBybit%2010.png?alt=media&#x26;token=e15f938b-a8d6-4dce-a66f-effd8433a5f0" alt=""><figcaption></figcaption></figure>

After passing Google's two-factor authentication, in the window that appears, copy the API key and API secret to a safe place. Next, click on "Confirm".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FNKQn2oAHPZqINSTaabD6%2FBybit%2011.png?alt=media&#x26;token=5da552b1-2d5b-4630-ad80-086dc4a26bdc" 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%2FaAy43qcb5eMnl9tsBfcs%2Fimage.png?alt=media&#x26;token=050cc01c-f410-434f-9fa8-3aea11800779" alt="" width="375"><figcaption></figcaption></figure>
