# 1.3.3 Bybit API Binding Tutorial

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

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.

<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/en/promo/events/unified-trading-account)

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, you need to go to the search box at the very top of the app and type "API". The app will automatically bring up the section you need.

<div><figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FiL7Oz0rPeXjnhD0JR6VY%2F50.png?alt=media&#x26;token=836ab0de-24c7-4fd1-b4ad-77855d92806b" alt=""><figcaption></figcaption></figure> <figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FsttgrzLUxNcB0nFXRw3g%2FFrame%203391%20en.png?alt=media&#x26;token=1c4c9a4b-61f3-47ae-90ac-639896926953" alt="" width="375"><figcaption></figcaption></figure></div>

In the appeared page, click "Create an API Key", then swipe to the right and press "Create New Key".

<div><figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FNuWqc3LsKF0rO2JhzCX3%2FFrame%203392%20ru.png?alt=media&#x26;token=38607bf1-1c1b-4a0d-b2c5-a1a826389766" 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%2FWfJN1QiAL9hztaSqXcOF%2FFrame%203390.png?alt=media&#x26;token=2d1b33fa-380a-4392-8b63-a86dadaacf3b" alt="" width="375"><figcaption></figcaption></figure></div>

In the pop-up window choose "System-generated API Keys".

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F91iO3a1vBjYhTZuyygS6%2FFrame%2023.jpg?alt=media&#x26;token=269313e5-7653-47d7-a689-6c87fbd6b01d" alt="" width="375"><figcaption></figcaption></figure>

In the "Create New Key" window, follow these instructions:

1\) Select the ''API Transaction'' option;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F4DKQFkXTdeBg70dKorWw%2FFrame%2035.png?alt=media&#x26;token=d0b74135-0af7-4a40-92c2-b80a2396016d" alt=""><figcaption></figcaption></figure>

3\) In "API Key Permissions" select the "Read-Write" and ''Only IPs with permissions granted are allowed to access the OpenAPI'' options;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2F9PMAl9IeNF8OOi5HIyqU%2FFrame%201.png?alt=media&#x26;token=f7996bbf-585c-4a3f-86a9-2a7371cb1922" 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.&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FcesRljVyaPA813EE0GPG%2Fip%20bybit.png?alt=media&#x26;token=5417a8a2-13c5-426c-ae6f-c5e7b5cda15f" 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%2FHKIunaUVquQnwPMef8jU%2FFrame%203878.png?alt=media&#x26;token=08caec8a-2244-4d05-a395-67167c76e2e9" alt="" width="375"><figcaption></figcaption></figure>

Return to the exchange app 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%2FsRUZExsUKAscR3RFwHPa%2F0.png?alt=media&#x26;token=fe5808dc-d78d-471a-8a73-a91fca90d7bb" alt="" width="375"><figcaption></figcaption></figure>

5\) In the settings below, select the ''Unified Trading'' section, which will automatically pull up the settings you need.

To conclude, press the ''Submit'' button;&#x20;

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FW8KTNgHzrOT6uYdN0BeH%2FFrame%203513.png?alt=media&#x26;token=03b34dc2-1b74-4df7-93f5-ca195ed9bd8a" alt="" width="375"><figcaption></figcaption></figure>

When you pass two-factor authentication from Google, in the appeared window copy the API key and the secret key to a safe place and click the "Understood" button.

<figure><img src="https://4045877156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5Z7CkeiyUfQ7J5ez8s0L%2Fuploads%2FonzDraT77yCl4jPpdatn%2F38.png?alt=media&#x26;token=8f11785a-8d94-4390-b2c2-e0945aea33ed" 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%2Fsjkdrahd9csMo9Ylit9l%2FFrame%203879.png?alt=media&#x26;token=7e8a4dea-e9c3-4cbf-8ba9-3c5b5c74598f" 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.3-bybit-api-binding-tutorial/bybit-whitelist-assets-adding)&#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://hash7-gitbook.gitbook.io/en/user-guide/1.3-api-binding-tutorial/1.3.3-bybit-api-binding-tutorial.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.
