# Gate

#### Create New API Key

<figure><img src="/files/8yf3BaiF0GKbzMyYJnNu" alt=""><figcaption></figcaption></figure>

* To create an API Key on Gate, navigate to your profile and select [API Key Management. ](https://www.gate.com/myaccount/profile/api-key/manage)
* From the API Key Management page, click **Create API Key** .

#### Configure API Key Settings

<figure><img src="/files/uAhIyfOE9q40P6qYpzOY" alt=""><figcaption></figcaption></figure>

* Specify the key's name for your own reference
* Whitelist the following IP: `54.238.80.239`
* Set API Key Type as API v4 Key (Default)
* Set Account Type as Trading Account (Default)
* Toggle on  `Spot` and `Account` and set their permissions as `Read and Write`&#x20;
  * <sub>Note:  None of the other permissions listed (like Perpetual Futures, Wallet, Withdraw, etc.) are necessary, as our integration with Gate.io is exclusively for spot trading and does not involve managing wallets or withdrawals.</sub>
* Once configured, click "Submit" and proceed with your Security Verification

#### Linking your API Key to tread.fi

* Navigate to tread.fi's [Key Management ](https://app.tread.fi/key_management)menu by clicking the wallet icon on the top right.
* Click **Connect CEX ACcount**

<figure><img src="/files/Z5TIpmsPzkqTkyjCD93M" alt=""><figcaption></figcaption></figure>

* Select Gate from the dropdown
* Copy your newly created Gate Key and paste into API Key
* Copy and paste in your API Secret
* Click Submit


---

# 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://docs.tread.fi/account-creation-and-api-key-connection/connecting-to-exchanges/gate.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.
