> For the complete documentation index, see [llms.txt](https://docs.tradetomato.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tradetomato.com/fundamentals/live-trading/bybit.md).

# Bybit

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

{% hint style="info" %}
For improved security and to maintain a clear distinction between your automated trading activities and other investments, we advise setting up a separate **sub-account** on Bybit dedicated to Tradetomato.
{% endhint %}

Unlock the power of automated trading on Bybit by establishing a live trading connection through the generation of essential API keys. Follow these steps to seamlessly integrate your Bybit account with Tradetomato's platform.

[**Navigate to Bybit**](https://www.bybit.com/en-US)

{% hint style="info" %}
*If you already have a Bybit account with funds on it* - skip to the API integration step.
{% endhint %}

* If you're new to Bybit, create an account or log in if you already have one.
* Craft a robust password for your trading account.
* Elevate security by activating 2-factor authentication.
* Verify your email and adhere to Bybit's identity verification protocols, enhancing overall security measures.

**API Key Creation**<br>

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FwhQajAk1tmrI2b7EAUF1%2FGroup%204579.png?alt=media&amp;token=f989e7fb-abb6-45a9-baef-4502d28c90dc" alt=""><figcaption></figcaption></figure>

Within your Bybit account interface, locate the 'API Management' section to initiate API key creation.

Click 'Generate New Key' and opt for the 'System-Generated API Keys' option.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FaGLwNsbpZkvo43Am7Gvz%2FGroup%204580.png?alt=media&amp;token=7da33bc8-7b4c-4a1d-aae9-56bc920dbca1" alt=""><figcaption></figcaption></figure>

**Select Permissions**&#x20;

Provide a recognizable name to your API key, facilitating easy identification.

During API key generation, ensure that you select appropriate permissions. For live trading, you'll need to enable the following permissions:

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FXKEgMzDjOXZD7SX3i4RN%2FScreenshot%202024-09-05%20at%2011.38.34.png?alt=media&amp;token=0b860379-18df-4e7d-904a-b7e1ad76a706" alt=""><figcaption></figcaption></figure>

**API Key Usage -** Tick off the following permissions:

* **API Key Permissions**
  * [x] Read-Write
  * [x] Only IPs with permissions granted are allowed to access the OpenAPI
* **Trade**
  * [x] Unified Trading
    * Spot
      * [x] Trade
* **Assets**
  * [x] Assets
    * Read-Write
      * [x] Convert, Exchange History

#### **Whitelist IP**

Strengthen security by whitelisting your IP address.

In the empty field under *API Key Permissions e*nter the IP addresses displayed to you on the Tradetomato platform, separating them with **commas**.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FlAsYy241Y80P2lKh63SF%2FScreenshot%202023-09-14%20at%2013.44.33.png?alt=media&amp;token=19c9c345-aff0-46f8-84c8-8ea3e2451bd7" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
Click ***Submit***
{% endhint %}

Proceed with a security verification, involving email verification and your 2FA code.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FTsB1U1JxiUZ8MerOqvop%2FGroup%204583.png?alt=media&amp;token=575e9588-51ed-4bb4-a8fd-3ff21c6811ce" alt=""><figcaption></figcaption></figure>

#### Generate Key

Once your API keys are generated, copy them. Return to Tradetomato's connection setup and paste the credentials into their respective fields.

<figure><img src="https://3546553553-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFnYWp8cljRKEyiDZ17i%2Fuploads%2FA8JETdoRzfgaxda8elp4%2FGroup%204584.png?alt=media&amp;token=938eafac-957e-4219-adf2-f903ca279af7" alt=""><figcaption></figcaption></figure>

#### Establish Connection

Congratulations! Your Bybit connection is now established. Explore your portfolio and begin automating your Bybit trades on the Tradetomato platform.
