> For the complete documentation index, see [llms.txt](https://blackquant.gitbook.io/blackquant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blackquant.gitbook.io/blackquant/instructions/bybit.md).

# Bybit

### Preamble

Bybit offers the possibility to use either USDT as collateral or other cryptocurrencies (i.e. BTC).

This means customers can decide if they hold USDT in their Bybit wallet, or if they want to hold various crypto assets on top of their Blackquant trades.

* Using USDT as collateral (Standard Bybit trading account), Blackquant customers will accumulate more and more USDT.
* Using crypto assets as collateral, Blackquant customers will accumulate more and more USDT on top of their existing crypto assets (i.e. BTC)

Find more information on the link below to know more about differences between Standard account and Unified Trading account on Bybit :&#x20;

{% embed url="<https://www.bybit.com/en/help-center/article/Comparison-between-UTA-and-Standard-AccountBybit_Unified_Trading_Account>" %}

Please select the tutorial of your choice based on the collateral you would like to use.

{% tabs %}
{% tab title="USDT as collateral (Standard Account)" %}

### 1. Create a Bybit account

{% hint style="info" %}
*If you already have a Bybit account, you can skip this step and go directly to step 2.*
{% endhint %}

If you don’t have a Bybit account, go to the official [Bybit](https://bybit.com) website or use our [referral link](https://partner.bybit.com/b/blackquant) to get a 10% discount on trading fees for 6 months.

{% embed url="<https://partner.bybit.com/b/blackquant>" fullWidth="false" %}

<div data-full-width="false"><figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FQhEKKbg2iryt8QY8yviz%2FReferral%20Bybit.JPG?alt=media&amp;token=7a0596d6-cfa7-4ec8-b018-b5c5e6dcd8c1" alt=""><figcaption></figcaption></figure></div>

## 2. Fund your Bybit account

Bybit allows two different methods to fund your wallet :

* Buy cryptocurrencies directly from Bybit website
* Deposit cryptocurrencies from external wallets

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FqgljHrxDwo5NHkJXg50n%2FBybit%20Fund%202023.JPG?alt=media&amp;token=7c325489-52bf-45f3-90a2-c1ef80de14fe" alt=""><figcaption></figcaption></figure>

You can deposit the cryptocurrency that you prefer but then you must convert it in USDT.

{% hint style="warning" %}
Blackquant system will only read your USDT Balance to open trading positions. Other currencies such as Bitcoin (BTC), Ethereum (ETH), Solana (SOL) and others will not be read by the system. The balance of those assets will be ignored and won't be used to open positions.
{% endhint %}

## 3. Create API keys

Blackquant solution is using a protocol called API connectivity to communicate and trigger orders on your Bybit account.

To enable this feature, API keys are necessary :

* 1\. Click on account icon in top right corner
* 2\. Select "API Keys" tab in drop down menu

<div align="center"><figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FR4LQj5SG3Us0N82EqIhb%2FBybit%20API%202023.JPG?alt=media&amp;token=b0034307-3573-4e27-a0ca-aa06843245d7" alt=""><figcaption></figcaption></figure></div>

In API management tab, create a new API key :

* Click on "Create New Key"
* Click on "System-generated API Keys"

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FHAyAqAu2rK2EGBOo5HkF%2FBybit%20API%20Create%202023.JPG?alt=media&amp;token=fd7ca1ef-9b41-4fb4-bfc5-f82c24b39fd1" alt=""><figcaption></figcaption></figure>

In API key panel, select the following parameters :

* 1.Select "API Transaction"
* 2\. In "Name" field, type name of your choice for your API key, for example "blackquant"
* 3\. API Permissions, select "Read-Write" and "No IP restriction"
* 4\. Trade : Tick "Unified Trading". It will tick automatically all required boxes
* 6\. Click on "Submit" button

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FfRtWjNHqSJ4DjmylBr7d%2FBybit%20API%20key%20settings.JPG?alt=media&amp;token=789ca07b-cda0-4ccf-a138-5f1aec7e01f9" alt=""><figcaption></figcaption></figure>

After clicking on "Submit", a popup window will appear to complete authentication for the API key creation.

Please complete required steps.

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FAGU1IL6lgKB85YqRDTvq%2FBybit%20API%20verification.JPG?alt=media&amp;token=9a11c6bc-8c85-4fd1-ba8f-8b0b92843f1e" alt=""><figcaption></figcaption></figure>

Once your Bybit API keys is created, store your Public API key and your Secret API key in a safe place. You will be asked to paste it in your Blackquant dashboard in the next step.

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2Fdr5QMchxqsoBxwfIDfyk%2FBybit%20API%20Key%202023.JPG?alt=media&amp;token=8ac44a3b-5db2-48ef-aece-4add218a64b1" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Your **API Secret** will be visible only once in Bybit dashboard. Make sure to save it somewhere.

If you have lost it, you can recreate a second Bybit API key.
{% endhint %}

## 4. Got to Blackquant website and configure your account

Go to [Blackquant website](https://blackquant.ch/) :&#x20;

{% embed url="<https://blackquant.ch/>" %}

In Blackquant settings, set the following parameters :

* Exchange : Select "Bybit" from the list
* Public API Key : Enter your Bybit Public API Key
* Secret API Key : Enter your Bybit Secret API Key
* Trading Allocation : Define which % of your wallet you want the system to trade. Default value is set at 100%
* Click on "Save" button

{% hint style="info" %}
At any time, you can update your parameters.&#x20;

All settings are read continuously by our software. If allocation has been modified during an ongoing trade, position size will be updated accordingly.
{% endhint %}

## 5. Verification

Once all fields from step n°4 are filled, Blackquant system will then connect automatically after few minutes.

The connectivity status should display "**Connected**" on your blackquant dashboard.<br>

Not connected ? Double check your API Keys or make sure the permissions are correct.\
Still not connected ? Send us a message on [Telegram](https://t.me/Blackquant). We will be pleased to help you.

## 6. Congratulations

Your account is now fully operational and already generating profits for you.

Some extra informations can be found on the [***Frequently Asked Questions***](/blackquant/f.a.q./general-informations.md) page :

{% content-ref url="/pages/hpXiwskcn7yKx2roHJKT" %}
[F.A.Q.](/blackquant/f.a.q./general-informations.md)
{% endcontent-ref %}

May you have any questions, feel free to reach us through the following methods :

* Public Telegram Group

{% embed url="<https://t.me/Blackquant_official>" %}

* Private Telegram Direct Message

{% embed url="<https://t.me/Blackquant>" %}

* Email at <support@blackquant.ch>

{% endtab %}

{% tab title="Crypto Assets as collateral (Unified Trading Account)" %}

### 1. Create a Bybit account

{% hint style="info" %}
*If you already have a Bybit account, you can skip this step and go directly to step 2.*
{% endhint %}

If you don’t have a Bybit account, go to the official [Bybit](https://bybit.com) website or use our [referral link](https://partner.bybit.com/b/blackquant) to get a 10% discount on trading fees for 6 months.

{% embed url="<https://partner.bybit.com/b/blackquant>" fullWidth="false" %}

## 2. Convert your Bybit standard account into Unified Trading Account

In order to use crypto assets as collateral, a conversion of your standard Bybit account into a Bybit Unified Trading account is required.&#x20;

To perform the conversion, please follow the following documentation from Bybit :&#x20;

{% embed url="<https://www.bybit.com/en/help-center/article/How-to-Upgrade-Standard-Account-to-UTA>" %}

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

{% hint style="info" %}
On Bybit, you cannot switch your Unified Trading account back to a Standard account once upgraded. Reversal is not supported.&#x20;

Please see Bybit FAQ section for more info:

<https://www.bybit.com/en/help-center/article/FAQ-Unified-Trading-Account>
{% endhint %}

## 3. Fund your Bybit account

Bybit allows two different methods to fund your wallet :

* Buy cryptocurrencies directly from Bybit website
* Deposit cryptocurrencies from external wallets

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FqgljHrxDwo5NHkJXg50n%2FBybit%20Fund%202023.JPG?alt=media&amp;token=7c325489-52bf-45f3-90a2-c1ef80de14fe" alt=""><figcaption></figcaption></figure>

You can deposit the cryptocurrency that you prefer.&#x20;

When you make a deposit, Bybit will by default deposit the funds on your Funding Account.&#x20;

For the assets to used as collateral, you need to transfert your assets into your Unified Trading Account :&#x20;

* Click on "Assets" menu on the top right corner, then click on "Unified Trading Account"
* Click on "Transfer" button
* On the popup window, select "Within Account" and set from "Funding" to Unified Trading"

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FGYNuU5k7hr0xxcpQVuC9%2Fimage.png?alt=media&amp;token=b8b8ff43-d4c5-4eed-aa16-4800564ca716" alt=""><figcaption></figcaption></figure>

From now on, ll your cryptocurrencies available in your Unified Trading Account will be used as collateral (i.e. BTC, ETH, DOGE)

## 4. Create API keys

Blackquant solution is using a protocol called API connectivity to communicate and trigger orders on your Bybit account.

To enable this feature, API keys are necessary :

* 1\. Click on account icon in top right corner
* 2\. Select "API Keys" tab in drop down menu

<div align="center"><figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FR4LQj5SG3Us0N82EqIhb%2FBybit%20API%202023.JPG?alt=media&amp;token=b0034307-3573-4e27-a0ca-aa06843245d7" alt=""><figcaption></figcaption></figure></div>

In API management tab, create a new API key :

* Click on "Create New Key"
* Click on "System-generated API Keys"

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FHAyAqAu2rK2EGBOo5HkF%2FBybit%20API%20Create%202023.JPG?alt=media&amp;token=fd7ca1ef-9b41-4fb4-bfc5-f82c24b39fd1" alt=""><figcaption></figcaption></figure>

In API key panel, select the following parameters :

* 1.Select "API Transaction"
* 2\. In "Name" field, type name of your choice for your API key, for example "blackquant"
* 3\. API Permissions, select "Read-Write" and "No IP restriction"
* 4\. Trade : Tick "Unified Trading". It will tick automatically all required boxes
* 6\. Click on "Submit" button

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FfRtWjNHqSJ4DjmylBr7d%2FBybit%20API%20key%20settings.JPG?alt=media&amp;token=789ca07b-cda0-4ccf-a138-5f1aec7e01f9" alt=""><figcaption></figcaption></figure>

After clicking on "Submit", a popup window will appear to complete authentication for the API key creation.

Please complete required steps.

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2FAGU1IL6lgKB85YqRDTvq%2FBybit%20API%20verification.JPG?alt=media&amp;token=9a11c6bc-8c85-4fd1-ba8f-8b0b92843f1e" alt=""><figcaption></figcaption></figure>

Once your Bybit API keys is created, store your Public API key and your Secret API key in a safe place. You will be asked to paste it in your Blackquant dashboard in the next step.

<figure><img src="https://1335269643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW6zYupUXGpBCMJ0AsYF7%2Fuploads%2Fdr5QMchxqsoBxwfIDfyk%2FBybit%20API%20Key%202023.JPG?alt=media&amp;token=8ac44a3b-5db2-48ef-aece-4add218a64b1" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Your **API Secret** will be visible only once in Bybit dashboard. Make sure to save it somewhere.

If you have lost it, you can recreate a second Bybit API key.
{% endhint %}

## 5. Got to Blackquant website and configure your account

Go to [Blackquant website](https://blackquant.ch/) :&#x20;

{% embed url="<https://blackquant.ch/>" %}

In Blackquant settings, set the following parameters :

* Exchange : Select "Bybit" from the list
* Public API Key : Enter your Bybit Public API Key
* Secret API Key : Enter your Bybit Secret API Key
* Trading Allocation : Define which % of your wallet you want the system to trade. Default value is set at 100%
* Click on "Save" button

{% hint style="info" %}
At any time, you can update your parameters.&#x20;

All settings are read continuously by our software. If allocation has been modified during an ongoing trade, position size will be updated accordingly.
{% endhint %}

## 6. Verification

Once all fields from step n°4 are filled, Blackquant system will then connect automatically after few minutes.

The connectivity status should display "**Connected**" on your blackquant dashboard.<br>

Not connected ? Double check your API Keys or make sure the permissions are correct.\
Still not connected ? Send us a message on [Telegram](https://t.me/Blackquant). We will be pleased to help you.

## 7. Congratulations

Your account is now fully operational and already generating profits for you.

Some extra informations can be found on the [***Frequently Asked Questions***](/blackquant/f.a.q./general-informations.md) page :

{% content-ref url="/pages/hpXiwskcn7yKx2roHJKT" %}
[F.A.Q.](/blackquant/f.a.q./general-informations.md)
{% endcontent-ref %}

May you have any questions, feel free to reach us through the following methods :

* Public Telegram Group

{% embed url="<https://t.me/Blackquant_official>" %}

* Private Telegram Direct Message

{% embed url="<https://t.me/Blackquant>" %}

* Email at <support@blackquant.ch>
  {% endtab %}
  {% endtabs %}
