• Language & Exchange Rate Switch
  • Preference Settings
    Rise/Fall Color
    Start-End Time of the Change
  • Language
  • Exchange Rate Switch
Do Not Switch to Fiat Do not display fiat price
  • CNY - ¥
  • USD - $
  • VND - ₫
  • EUR - €
  • GBP - £
  • HKD - $
  • JPY - ¥
  • RUB - ₽
  • TRY - ₺
  • INR - ₹
  • NGN - ₦
  • UAH - ₴
  • BRL - R$
  • MYR - RM
  • PGK - K
  • PKR - Rs
  • BDT - ৳
  • PHP - ₱
  • CAD - $
  • IDR - Rp
  • ZAR - R
  • PLN - zł
  • SAR - ﷼‎
  • ARS - $
  • AED - د.إ
  • KZT - ₸
  • EGP - E£
  • UZS - so`m
  • TWD - $
  • GHS - GH₵
  • VES - Bs
  • MXN - $
  • COP - $
  • XAF - Fr
  • XOF - FCFA
  • BYN - Br
  • KES - Ksh
  • MAD - د.م
  • AUD - $
  • TZS - TSh
  • SEK - kr
  • AZN - ₼
  • CLP - $
  • HUF - Ft
  • RON - lei
  • AMD - ֏
  • DZD - د.ج
  • NPR - रू
  • JOD - د.ا.
  • MRU - UM
  • IQD - ع.د
  • KWD - د.ك
  • QAR - ر.ق
  • TND - د.ت

Start-End Time of the Change

  • 24H
  • UTC 00:00
  • UTC+8 00:00

Rise/Fall Color

  • Red for rise and green for fall
  • Green for rise and red for fall

Pay With

How to Utilize API

Updated on 05 13, 2024
424537
views
117

1. Open Gate.io website. Place your cursor on top of the profile icon to unfold the menu and click on “API Management”.

2. Click on “Create API Key” on the page.

3. Create API Key

Create an APIv2 Key:
① IP permissions: You can choose whether to bind IP. Note: If you opt for not binding, the API Key will allow access from any address and is valid for 90 days.
②API Key type: Select API v2 Key. Each user can only create 1 set, and the new one will overwrite the previous one. Then you can set it to be: “Read and Write” or “Read Only”.
③ Confirm the details and click “Submit” to submit it.

Note: The previous API key will expire immediately when the new API key is generated.
API keys can be used to query information of the account and also to trade, withdraw funds, etc.
Please keep your API keys safe and do not ever share them with anyone else!

Create an APIv4 key
①API Key Remarks: Helps to identify and remember the key.
② IP permissions: You can choose whether to bind IP. Note: If you opt for not binding, the API Key will allow access from any address and is valid for 90 days.
③API Key type: Select API v4 Key.
④Account type: Choose Classic Account/MarginTrading/Testnet.
⑤Permissions: Set it to be: “Read and Write” or “Read Only”. Note: The currency pair cannot be empty.
⑥Confirm the details and click “Submit” to submit it.

4. A Risk Reminder will pop up after you click “Submit “. Please read the risk warnings carefully, and then click “I accept” or “Cancel” to proceed.

Enter the Fund Password, select the methods for 2FA Authentication,and click “Confirm” to proceed.

5. After creating an API key, you can view, edit or delete the key.

6. Notice:

① APIv2/4 keys have permissions to withdraw and deposit. To use the API to withdraw, you must use the address that has been withdrawn manually, and the time since the last manual withdrawal is more than 24 hours.

② The differences between APIv2 and APIv4 are as follows:

•APIv2 keys and APIv4 keys are independent of each other.

•APIv2 keys are only permitted to conduct spot trading while APIv4 keys are granted full access to spot trading, margin trading, and contract trading.

•You need to scroll down to the bottom of the page of your APIv2 keys to create new APIv2 keys. APIv4 keys are created in “Personal Center” - “Sub account and API” - “APIv4 Keys”.

*Decide between APIv2 and APIv4 according to your own specific demands. Please refer to this article for updates on their features.

If the article can not help with your questions, please give us feedback through a ticket. Please include the following information in the ticket:

Your UID, URL of the original request, parameters and a thorough deion of your request, whether the API key is for spot or margin trading, mainnet or testnet, the programming language (the codes for sending the request would be great), whether SDK is used (if yes, please describe how to use it or comment in GitHub).

7. API documents can be accessed in “Services” - “Developers (API)” on the bottom of the page.

8. Frequency limit rule.

The rate limit is counted against each sub-account or main account.

WebSocket:

•The message limit sent to the server: unlimited.
•Number of connections per IP: ≤ 300

NOTICE:

When repeatedly violating rate limits, it depends on

•the request< burst rate, the request will have a delay.
•the request> burst rate, the request will be declined.

Was this article helpful to you?
Language and Region
Exchange Rate

Select language and region

Go to Gate.TR?
Gate.TR is online now.
You can click and go to Gate.TR or stay at Gate.io.
It seems that you are attempting to access our services from a Restricted Location where Gate.io is unable to provide services. We apologize for any inconvenience this may cause. Currently, the Restricted Locations include but not limited to: the United States of America, Canada, Cambodia, Cuba, Iran, North Korea and so on. For more information regarding the Restricted Locations, please refer to the User Agreement. Should you have any other questions, please contact our Customer Support Team.
I Acknowledge