The Gate.io API SDK is a production-ready Node.js and TypeScript library for integrating with Gate.com’s (formerly Gate.io) full trading platform. A singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tiagosiebler/gateio-api/llms.txt
Use this file to discover all available pages before exploring further.
RestClient covers every market — Spot, Margin, Perpetual Futures, Delivery Futures, Options, CrossEx, Alpha, and OTC — while WebsocketClient delivers real-time streaming with automatic reconnection and WebsocketAPIClient gives you a REST-like promise interface directly over WebSocket.
Quickstart
Install the SDK and make your first REST API call in under five minutes.
Authentication
Generate API credentials on Gate.com and pass them securely to any client.
REST API Overview
Explore the unified RestClient and all supported trading products.
WebSocket Streams
Subscribe to real-time market data and private account events.
What’s included
RestClient
Unified REST client for all Gate.com markets — 300+ typed methods.
WebsocketClient
Event-driven streaming with smart reconnection and heartbeat management.
WebsocketAPIClient
Promise-based WebSocket API — use it like a REST client.
Key features
- Full TypeScript support — strongly-typed request and response objects for every endpoint
- All Gate.com markets — Spot, Margin, Perpetual Futures, Delivery Futures, Options, CrossEx, Alpha, OTC
- Smart WebSocket persistence — automatic reconnection, heartbeat monitoring, and resubscription
- Dual WebSocket API interface — choose event-driven or promise-based patterns
- Automatic authentication — HMAC signing handled internally for REST and WebSocket
- Proxy support — pass any axios
requestOptionsfor HTTP proxy configuration - Browser compatible — webpack bundle available for frontend usage
Get started
Create API credentials
Visit Gate.com API Key Management to generate your key and secret.
Need help? Join the Node.js Algo Traders community on Telegram or open an issue on GitHub.