# 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](https://753607342-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MhogE6fBOvMLDd92Qub%2F-MjxJILWgDRQm6O3EcY6%2F-Mk0l-k-o0pNJXmazwy4%2FUnbenannt.PNG?alt=media\&token=a5ec8ca4-2970-4399-bb4d-722604c95084)

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](https://753607342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MhogE6fBOvMLDd92Qub%2Fuploads%2FGuawLG6bgDi8LMlm9qa1%2Fphoto5474659525492585881.jpg?alt=media\&token=a5da7184-be43-4d9b-970e-46d2872a96ab)
