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:
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:
NOTICE:
When repeatedly violating rate limits, it dependson
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 the above content and submit it to b>mm@mail.gate.io</b , 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.