Public APIs
Gateio favicon

Gateio

Cryptocurrency

API provides spot, margin and futures trading operations.

Gateio's website screenshot

About Gateio

Gate.io provides a REST and WebSocket API for spot, margin, and futures cryptocurrency trading. It exposes endpoints for trading pairs, market info, coin info (deposit/withdraw/trade status), market details, tickers, order book depth, K-line data, P2P depth, trade execution, and sub-account management. Two API versions are available: 4.0, covering spot, margin, and futures, and 2.0, limited to spot trading.

Authentication uses API v4 keys, generated separately from v2 keys and managed through the API v4 Keys interface. Client libraries and demo code are provided for Python, Java, PHP, JavaScript, Go, Node.js, C#, and Perl.

The API is intended for developers building trading bots, market data tools, or applications that integrate cryptocurrency trading and account management with the Gate.io exchange.

Key features

  • REST API for spot, margin, and futures trading (API v4)
  • WebSocket API for real-time spot and futures market data
  • Public market data endpoints: trading pairs, tickers, market info, coin info, and order book depth
  • Sub-account API for managing linked accounts
  • P2P depth API for peer-to-peer order book data
  • K-line (candlestick) historical trading data

Frequently asked questions

What programming languages have official demos?

Gate.io provides API demos in Python, Java, PHP, JavaScript, Go, Node.js, and C#.

Are API v2 and API v4 keys interchangeable?

No, API v4 keys are independent from API v2 keys and must be generated separately in the API v4 Keys section.

Does the API support real-time data via WebSocket?

Yes, Gate.io offers both a Futures WebSocket API and a Spot WebSocket API, including a newer WS API 4.0 version.

What trading functionality does the REST API cover?

The API (4.0) REST API covers spot, margin, and futures trading operations.

Can I get market data without authentication?

Yes, endpoints like trading pairs, market info, coin info, market details, and tickers are accessible via simple GET requests to data.gateapi.io.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product