# Gate.io Exchange API
> Live market data from Gate.io, one of the largest crypto exchanges by listed assets, served from its public v4 API — no key, nothing cached. Gate.io lists thousands of trading pairs, far more than mainstream venues, so it is where new and long-tail altcoins trade. The ticker endpoint returns a pair's snapshot: last price, best bid and ask, 24-hour change percentage, base and quote volume and 24-hour high/low. The tickers endpoint returns every one of Gate.io's roughly 2,200 pairs in one call, sortable by 24-hour change or volume — a sweep of the whole altcoin market. The candles endpoint returns OHLC candlesticks at an interval you choose, from ten seconds to one month. The currency endpoint is Gate.io's distinctive piece: for any coin it returns the deposit and withdrawal status across every blockchain it supports — whether deposits and withdrawals are enabled, on which chains, and whether the asset is delisted or trade-disabled — the operational data a wallet or exchange integration needs before moving funds. Everything is Gate.io's live venue data, nothing stored. Distinct from Coinbase, Bitstamp, OKX and Kraken venue APIs — this is Gate.io's deep altcoin order flow and its per-chain deposit/withdrawal status. 4 endpoints, no key on our side, real-time.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/gateio-api/..."
```

## Pricing
- **Free** (Free) — 5,500 calls/Mo, 5 req/s
- **Starter** ($12/Mo) — 128,000 calls/Mo, 12 req/s
- **Pro** ($34/Mo) — 790,000 calls/Mo, 30 req/s
- **Mega** ($79/Mo) — 4,300,000 calls/Mo, 80 req/s

## Endpoints

### Gate.io

#### `GET /v1/candles` — OHLC candlesticks

**Parameters:**
- `pair` (query, required, string) — Trading pair Example: `ETH_USDT`
- `interval` (query, optional, string) — 10s,1m,5m,15m,1h,4h,1d,7d,30d (default 1h) Example: `1h`
- `limit` (query, optional, string) — Max candles (1-300) Example: `50`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/gateio-api/v1/candles?pair=ETH_USDT&interval=1h&limit=50"
```

**Response:**
```json
{
    "data": {
        "pair": "ETH_USDT",
        "count": 50,
        "source": "Gate.io",
        "candles": [
            {
                "iso": "2026-06-07T19:00:00.000Z",
                "low": 1603.9,
                "high": 1630.35,
                "open": 1630.25,
                "time": 1780858800,
                "close": 1613.25,
                "base_volume": 23704.09883374,
                "quote_volume": 38219247.76772795
            },
            {
                "iso": "2026-06-07T20:00:00.000Z",
                "low": 1609.49,
                "high": 1631.99,
                "open": 1613.25,
                "time": 1780862400,
                "close": 1628.04,
                "base_volume": 8929.47423451,
                "quote_volume": 14491075.65462664
            },
            {
                "iso": "2026-06-07T21:00:00.000Z",
                "low": 1623.86,
                "high": 1634.6,
                "open": 1628.04,
                "time": 1780866000,
                "close": 1634.51,
                "base_volume": 4693.7297,
                "quote_volume": 7643853.850068
            },
            {
                "iso": "2026-06-07T22:00:00.000Z",
                "low": 1629.14,
                "high": 1720.97,
                "open": 1634.52,
                "time": 1780869600,
                "close": 1672.64,
                "base_volume": 34769.00755483,
                "quote_volume": 58361631.05696968
            },
            {
  
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/currency` — A coin per-chain deposit/withdraw status

**Parameters:**
- `currency` (query, required, string) — Coin (e.g. USDT) Example: `USDT`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/gateio-api/v1/currency?currency=USDT"
```

**Response:**
```json
{
    "data": {
        "name": "Tether",
        "chains": [
            {
                "chain": "ETH",
                "contract": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
                "deposit_enabled": true,
                "withdraw_delayed": false,
                "withdraw_enabled": true
            },
            {
                "chain": "0G",
                "contract": "0x1217bfe6c773eec6cc4a38b5dc45b92292b6e189",
                "deposit_enabled": false,
                "withdraw_delayed": false,
                "withdraw_enabled": false
            },
            {
                "chain": "ALGO",
                "contract": "312769",
                "deposit_enabled": false,
                "withdraw_delayed": false,
                "withdraw_enabled": true
            },
            {
                "chain": "APT",
                "contract": "0x357b0b74bc833e95a115ad22604854d6b0fca151cecd94111770e5d6ffc9dc2b",
                "deposit_enabled": true,
                "withdraw_delayed": false,
                "withdraw_enabled": true
            },
            {
                "chain": "ARBEVM",
                "contract": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
                "deposit_enabled": true,
                "withdraw_delayed": false,
                "withdraw_enabled": true
            },
            {
                "chain": "BSC",
                "contract": "0x55d398326f99059fF775485246999027B3197955",
                "deposit
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/ticker` — A pair ticker

**Parameters:**
- `pair` (query, required, string) — Trading pair (base_quote) Example: `BTC_USDT`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/gateio-api/v1/ticker?pair=BTC_USDT"
```

**Response:**
```json
{
    "data": {
        "ask": 62011.4,
        "bid": 62011.3,
        "last": 62011.3,
        "pair": "BTC_USDT",
        "source": "Gate.io",
        "spread": 0.1,
        "low_24h": 60773.7,
        "high_24h": 63844.9,
        "base_volume": 27510.5769287432,
        "quote_volume": 1706107957.5514176,
        "change_24h_pct": -1.98
    },
    "meta": {
        "timestamp": "2026-06-09T20:24:44.798Z",
        "request_id": "955a4dec-f6fd-4ed4-942b-dcbdbed6f58f"
    },
    "status": "ok",
    "message": "Ticker retrieved successfully",
    "success": true
}
```

#### `GET /v1/tickers` — All pairs in one call

**Parameters:**
- `sort` (query, optional, string) — change or volume Example: `change`
- `limit` (query, optional, string) — Max rows

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/gateio-api/v1/tickers?sort=change"
```

**Response:**
```json
{
    "data": {
        "sort": "change",
        "count": 2208,
        "source": "Gate.io",
        "tickers": [
            {
                "ask": 0.0013184,
                "bid": 0.0012911,
                "last": 0.0013217,
                "pair": "TRU_USDT",
                "spread": 2.73e-5,
                "low_24h": 0.0006405,
                "high_24h": 0.0014786,
                "base_volume": 72928027,
                "quote_volume": 77581.6913973,
                "change_24h_pct": 100.95
            },
            {
                "ask": 6.7999e-6,
                "bid": 7.9e-8,
                "last": 7.699e-7,
                "pair": "TRU_ETH",
                "spread": 6.7209e-6,
                "low_24h": 3.751e-7,
                "high_24h": 2.5e-5,
                "base_volume": 1196359.2,
                "quote_volume": 0.5246342301115,
                "change_24h_pct": 95.8
            },
            {
                "ask": 0.003123,
                "bid": 0.00308,
                "last": 0.003101,
                "pair": "LAB3S_USDT",
                "spread": 4.3e-5,
                "low_24h": 0.00181,
                "high_24h": 0.003255,
                "base_volume": 28970568.59,
                "quote_volume": 65340.91713503,
                "change_24h_pct": 69.63
            },
            {
                "ask": 0.06265,
                "bid": 0.06179,
                "last": 0.06149,
                "pair": "SKYAI3S_USDT",
                
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Spec

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/gateio-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "source": "Gate.io public API v4 (live)",
        "service": "gateio-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/ticker": "A pair's ticker (pair=BTC_USDT).",
            "GET /v1/candles": "OHLC candlesticks (pair=ETH_USDT, interval=10s..30d).",
            "GET /v1/tickers": "All ~2,200 pairs in one call (sort=change|volume).",
            "GET /v1/currency": "A coin's per-chain deposit/withdrawal status (currency=USDT)."
        },
        "description": "Live market data from Gate.io's public v4 API: a pair's ticker (last, bid/ask, 24h change %, base/quote volume, 24h high/low); every one of ~2,200 pairs in one call (sortable) — a sweep of the whole altcoin market; OHLC candlesticks at a chosen interval; and the deposit/withdrawal status of any coin across every blockchain it supports (enabled per chain, delisted, trade-disabled). Live, no key, nothing stored. Distinct from Coinbase, Bitstamp, OKX and Kraken venue APIs — this is Gate.io's deep altcoin order flow and its per-chain deposit/withdrawal status.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T20:24:46.335Z",
        "request_id": "1a63320e-263d-4b53-93bd-085ea07288e0"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/gateio-api
OpenAPI spec: https://www.oanor.com/api/gateio-api/openapi.json
