# Connection to Bybit

In this guide, we will cover all the steps required to create a trading account on Bybit and connect to the Quantower platform.

* [**Open an account on Bybit to get personal API keys**](#open-an-account-on-bybit-to-get-personal-api-keys)
* [**Possible Errors with Bybit connection**](#possible-errors-with-bybit-connection)
* [**Bybit trading**](https://help.quantower.com/quantower/trading-panels/order-entry/order-entry-for-bybit)
* [**Errors**](#errors-with-bybit-connection)

Note, that in the platform, you can connect to the exchange in two modes:

* **Info Mode** — free and quick way to view charts and other data for cryptocurrencies on the Bybit exchange without the need to enter keys
* **Trading Mode** — for trading on the Bybit exchange in demo or real mode. API Keys are required. Below you will show how to get keys for trading.

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTRiKHTLT4h-iC7qpQl%2F-MTRuSgQEmK3pGVZKSNg%2Fbybit%20modes.gif?alt=media\&token=65eb9a36-f7b3-4b97-9fff-49b3acd18fb5)

### Open an account on Bybit to get personal API keys

{% hint style="info" %}
For **REAL Trading** please create an account on Bybit.com <https://www.bybit.com/en-US/invite/?ref=n9X0D>

For **DEMO Trading** please create an account on Testnet.Bybit.com <https://testnet.bybit.com/>
{% endhint %}

Go to the [**Bybit official website** using this link](https://www.bybit.com/en-US/invite?ref=n9X0D) and go through the procedure for registering a new account on the exchange.

For email registration, please enter your email, preferred password and (!) referral code **n9X0D** \
Swipe the verification page then enter the verification code sent to your email inbox.

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTRiKHTLT4h-iC7qpQl%2F-MTRkYKOvmW1QliB9cov%2Fimage.png?alt=media\&token=7bfcf924-4057-409c-a414-4f4ebc427d4a)

To create/manage your Bybit API keys, please click onto the top right on your username. Inside the dropdown menu, click on **'API'.**

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTRu_D77TL8Ghg-kMKB%2F-MTShtdEgHEQH6uKR6Bn%2Fimage.png?alt=media\&token=40697c9a-5db7-4a2d-bc8a-95d591b04226)

Click on **'Create New Key'** located on the right side of the **'API Management'** page

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTRu_D77TL8Ghg-kMKB%2F-MTSjFzV3VuYbWxzWvGN%2Fimage.png?alt=media\&token=ec9aee1c-6057-47a4-bab3-b32183afcb60)

{% hint style="warning" %}
&#x20;**You need to configure two-factor authorization on Bybit. It is necessary for creating keys.**
{% endhint %}

The following pop-out window will appear. Please configure your API key according to your trading needs. Enter your Google Authenticator 2FA and click on 'Confirm' to proceed

Enter your API information, such as a reference name for your API key under **'Name'** and select **'Active Order and Positions'** in the section **'Key Permission',** and proceed to enter your Google authenticator 2FA code before you click on “Confirm”

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTSmD1SW32b4TmMa7kW%2F-MTSuTdvQeP4nB6cSEsj%2Fimage.png?alt=media\&token=e36fccae-ea2f-4995-bccc-5870c3162380)

Once you receive the keys, save them. After closing the window, you will not be able to see the "APIPrivate Key" again.

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTSmD1SW32b4TmMa7kW%2F-MTSwDS_N96YGE_ku014%2Fimage.png?alt=media\&token=f847ff1c-1bda-4adf-bcac-5d0c0bb534ea)

Use your personal API Keys to login into your trading account in Quantower platform.

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTSmD1SW32b4TmMa7kW%2F-MTSz7Q4npwrGyiJ4Vnd%2Fbybit%20connected.gif?alt=media\&token=69d04a49-5934-4ba0-a6b2-844b754ea6e3)

### Possible Errors with Bybit connection

**"Timestamp error"** means that your local time on PC is not the same as on Bybit servers and it should be synchronized.

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MTSmD1SW32b4TmMa7kW%2F-MTSxCEKDucyK4S3nQ7z%2Fimage.png?alt=media\&token=841bfc5d-d6a0-480a-8dd5-5f3855394aad)

To solve it, please, go to **Windows Settings > Time & Language >** and click on **Sync Now** butto&#x6E;**.**

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MT_QY8SskMLz1VQ1V2G%2F-MT_TRVKQX4mKU-ZMxX7%2Fimage.png?alt=media\&token=4118d389-081e-4b57-9b66-55d5e208e0c2)

### Errors with bybit Connection

Refuse (bybit)- you don't have enough funds - fund your account

![](https://4186075531-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LD6FsRvQ3jgwJIg6O7r%2F-MfmcI9hishbawSDXuR3%2F-MfmcOoM-e85JzbtpJ1v%2Fimage.png?alt=media\&token=1444f36b-fc01-4096-91ae-769a5658ea90)


---

# 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://help.quantower.com/quantower/connections/connection-to-bybit.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.
