Welcome to Gate.io API
APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf.
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
REST API BaseURL:
- Live trading: https://api.gateio.ws/api/v4
- Futures TestNet trading: https://fx-api-testnet.gateio.ws/api/v4
- Futures live trading alternative (futures only): https://fx-api.gateio.ws/api/v4
Available SDK:
Besides API examples, some SDK provides an additional demo application. The demo application is a relatively complete example demonstrating how to use the SDK. It can be built and run separately. Refer to corresponding repository for details.
Markets | Endpoints | Limits | Based On | include |
---|---|---|---|---|
Spot | Public endpoints | 900r/s | API Key | Depth,Kline,trading pairs,etc. |
Private endpoints | 900r/s | API Key | Trading history,fee rate,etc. | |
Place orders | Placing(bulk)orders,margin trade,etc. | |||
Cancel orders | 5000r/s | API Key | Canceling(all)orders,etc. | |
Perp Swaps | Public endpoints | 300r/s | IP | Depth,Kline,trading pairs,funding rate,etc. |
Private endpoints | 400r/s | User ID | Position,fee rate,etc. | |
Place orders | Placing(bulk)orders,margin trade,etc. | |||
Cancel orders | Canceling(all)orders,etc. |
Web socket:
- The message limit sent to the server: unlimited.
- Number of connections per IP: ≤ 300
NOTICE:
When repeatedly violating rate limits, it dependson
- the request< burst rate, the request will have a delay.
- the request> burst rate, the request will be declined.
In order to further improve the market depth and transaction liquidity of the platform, we will recruit institutional market makers in an open and transparent manner, and provide professional market makers with professional market makers based on their contributions to platform liquidity. Rate scheme.
- Provide Gateio UID
- Provide screenshots of his trading volume or VIP level, etc.
- Provide screenshots of his trading volume or VIP level, etc.
Provide the above content and submit it to mm@mail.gate.io , we will accept it within 3 working days.
VIP11 and above need to enable GT deduction in the personal center to enjoy the professional market merchant rate.