The following is a general tutorial for creating an API. However, we recommend using sub-account APIs for trading whenever possible to reduce the risk to the main account. Sub-accounts are independent accounts that contribute to enhanced security and facilitate the assessment and optimization of different trading strategies' performance.There will be a separate page description for the sub-account API.
Sub-Accounts Page
(1)Go to Gate.io official website and log in
(2)Click on your profile picture, then find [API Management] and click on it.

(1)Click [Create API key] on the API management page

(2)On the following page,
1. [API Key Remarks] Fill in the name you need;
2. [IP permission] fill in:
54.64.46.83,52.198.134.2,18.179.130.89,52.68.229.228
Please copy and paste the IP directly.
3. Select [Bind IP].
4. API Key type select [API v4 Key]
5. Account Type Select [Trading Account]

6. Turn on the options marked in the image.
6-1【Spot Trade】
6-2【Perpetual Futures】
6-3【Subaccount】
6-4【Margin Trading(Unified Account)】
Please enable all the above permissions【Read and Write】
6-5 Press【Submit】

(1)On the next screen, check all three notifications and click [I Accept]

(2)Copy or screenshot all key information to other documents to save, and press [Return to API List] to end
