# create Gate.io API Keys

## How to create your APIv4 Keys for Gate.io

{% hint style="danger" %}
Yes, it is API Keys v4!! not v2.&#x20;
{% endhint %}

Log into your Exchange and go to the API section as you can see in the picture below.

![Here you can generate your APIv4 Keys on Gate.io](/files/-Mk0l-k-o0pNJXmazwy4)

You only need to enable "Spot"Margin Tade" and "Read And Write". This allows the crypto bot to connect to the exchange and trade. Never allow "Wallet" or "Withdraw"! Only allow to trade and your coins are save. Dont use the IP Whitelist, because the IP of your computer changes and then you would need to add that IP as well. So it is easier when you dont add an IP to the "IP Whitelist".&#x20;

![Select the following permissions for the API Keys v4](/files/pHxdACMCt5jKPjFqSEpp)


---

# 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.pump-bot.com/crypto-bot-general/keys-json/gate.io-exchange.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.
