> For the complete documentation index, see [llms.txt](https://docs.vooi.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vooi.io/vooi-ultra-v3/ultra-operational-guidelines/connect-gate-to-vooi-ultra.md).

# Connect Gate to VOOI Ultra

This guide explains how to connect your Gate Main Account or Subaccount to VOOI Ultra and enable trading using an API key.

## Before You Start

For the **Gate Main Account**, make sure that:

* The Gate account has been created and is accessible
* Trading is available for the account
* The account is funded
* You can complete Gate **Security Verification** when creating an API key

If you plan to connect a **Subaccount**, also make sure that:

* A **Standard Subaccount** has been created and is accessible from the Main Account
* The Subaccount is funded
* You can create an API key for that Subaccount

**API key:** The API key must be created for the Main Account or Subaccount you will use to trade through VOOI Ultra.

## Use Gate Main Account

{% hint style="info" %}
Use this section if you want to connect your main Gate account directly to VOOI Ultra and trade using its trading balance.
{% endhint %}

For the **Gate Main Account**, make sure that:

* The Gate account has been created and is accessible
* Trading is available for the account
* The account is funded
* You can complete Gate **Security Verification** when creating an API key

### Create a Gate API Key for Main Account

<figure><img src="https://3071033198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXCba6CdwFKbzdASxvC5H%2Fuploads%2F9emhHts4Px6xCalEx2EM%2Fimage.png?alt=media&amp;token=cabdc00a-9312-4295-90d9-414f5fe0ff50" alt=""><figcaption></figcaption></figure>

1. Log in to Gate at <https://www.gate.com/>.
2. Open **API Management**.
3. Click **Create API Key**.
4. Select **Trading Account**.
5. Create API Key:

<figure><img src="https://3071033198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXCba6CdwFKbzdASxvC5H%2Fuploads%2FJbbDJBzxwm0YrgFefLW6%2Fimage.png?alt=media&amp;token=d8dea557-c44c-4858-9d82-076ac58e5226" alt="" width="563"><figcaption></figcaption></figure>

6. Enter API Key Remark, e.g. VOOI
7. Add the VOOI Ultra IP addresses:

   ```
   35.78.12.245,54.249.80.55,52.68.244.92,13.159.166.194,13.112.74.148,52.192.115.1,52.192.68.116,13.193.138.71,57.181.0.148,13.115.147.66
   ```
8. Enable the following permissions:
   * **Spot Trading (Read and Write)**
   * **Perpetual Futures (Read and Write)**
   * **Stocks (Read and Write)**
   * **Margin Trading (Unified Account) (Read and Write)**
9. Click **Submit**.
10. Complete **Security Verification**.
11. Copy the **API Key** and **Secret Key**.

**Important:** Save the Secret Key when it is displayed. It may not be available again after the API key is created.

### Add the API Key to VOOI Ultra

<figure><img src="https://3071033198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXCba6CdwFKbzdASxvC5H%2Fuploads%2F74D6z8fZpo7xjRCUf67o%2Fimage.png?alt=media&amp;token=02ade006-07b4-47a2-b9c0-7088dedaa857" alt="" width="563"><figcaption></figcaption></figure>

1. Open VOOI Ultra <https://ultra.vooi.io/>
2. Go to the Gate connection flow.
3. Enter the **API Key** and **Secret Key** created for your Gate Main Account.
4. Press **Enable Trading**.

Once connected, VOOI Ultra can use the funds and positions of your Gate Main Account.

## Use Gate Sub-account

{% hint style="info" %}
Use this section if you want to keep VOOI Ultra trading separate from your main Gate account by using a dedicated Gate sub-account.
{% endhint %}

### Create or Configure Sub-account

<figure><img src="https://3071033198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXCba6CdwFKbzdASxvC5H%2Fuploads%2F5iNxSszRKSmXFjSQQ9iA%2Fimage.png?alt=media&amp;token=0f906712-da8e-4e1e-b3b8-2ca08ff6579f" alt=""><figcaption></figcaption></figure>

1. Open Gate Subaccount Management at <https://www.gate.com/myaccount/profile/sub-account-manage>
2. Click **Create**.
3. Enter a username.
4. Select **Standard Subaccount** as the account type.
5. Complete **Security Verification**.
6. Click **Confirm**.

The new Subaccount will appear in the Subaccount Management list.

### Fund the Sub-account

1. Open **Subaccount Management**.
2. Find the Subaccount you want to use.
3. Click **Transfer**.
4. Select the Main Account as the source and the Subaccount as the destination.
5. Select the asset and enter the amount.
6. Confirm the transfer.

Make sure the Subaccount has sufficient funds before trading through VOOI Ultra.

### Create API Key for Sub-account

1. In **Subaccount Management**, find the Subaccount you want to connect.
2. Open **APIs** for that Subaccount.
3. Click **Create API Key:**

<div align="left"><figure><img src="https://3071033198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXCba6CdwFKbzdASxvC5H%2Fuploads%2FvB0jRJOU3voRgMF3hUjl%2Fimage.png?alt=media&amp;token=7e56921b-cf3b-4538-843a-c4498a0c6951" alt="" width="563"><figcaption></figcaption></figure></div>

4. Enter API Key Remark, e.g. VOOI
5. Add the VOOI Ultra IP addresses:

   ```
   35.78.12.245,54.249.80.55,52.68.244.92,13.159.166.194,13.112.74.148,52.192.115.1,52.192.68.116,13.193.138.71,57.181.0.148,13.115.147.66
   ```
6. Enable the following permissions:
   * **Spot Trading (Read and Write)**
   * **Perpetual Futures (Read and Write)**
   * **Stocks (Read and Write)**
   * **Margin Trading (Unified Account) (Read and Write)**
7. Click **Submit**.
8. Complete **Security Verification**.
9. Copy the Subaccount **API Key** and **Secret Key**.

**Important:** Save the Secret Key when it is displayed. It may not be available again after the API key is created.

### Add the API Key to VOOI Ultra

<figure><img src="https://3071033198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXCba6CdwFKbzdASxvC5H%2Fuploads%2F60hmeoWRaZmC0XJuSywD%2Fimage.png?alt=media&amp;token=a56aab2f-da52-4493-9a4a-b8625da9e1d6" alt="" width="563"><figcaption></figcaption></figure>

1. Open VOOI Ultra at <https://ultra.vooi.io/>
2. Go to the Gate connection flow.
3. Enter the **API Key** and **Secret Key** created for your Gate Subaccount.
4. Press **Enable Trading**.

Trading through this connection uses the funds and positions of that Gate Subaccount.
