Gate.io API
v4 REST + WebSocket · spot, futures and the only public CFD/TradFi API of the three
Створіть ключ безпечно
- Profile → API Management → Create API key.
- Choose v4 key; name it after the app that will use it, one key per app.
- Permissions: tick Read Only for every scope first — wallet, spot, futures.
- Bind your server IP in the whitelist; keys without an IP bind expire faster and carry more risk.
- Store the secret once — Gate never shows it again.
Дозволи: що надати
- Read-only: balances, order history, positions — all our portfolio views need.
- Trade scope: only after our referral gate (UID check) if you run our engine live.
- Withdrawal scope: never. We refuse keys that have it enabled.
Варто знати перед написанням коду
- Public market data needs no key at all — candles, tickers, order books.
- Futures and spot are separate API namespaces with separate rate budgets.
- CFD/TradFi instruments (gold, indices, oil) are served through the same futures-style API — unique among the three exchanges.
Ніколи не надавайте дозвіл на виведення нікому. Не нам, не будь-якому сервісу. Наш потік підключення відхиляє ключі, які мають його. Торговий ключ може втратити угоду; ключ виведення може втратити рахунок.
Підключіть цей ключ до нашого двигуна → Офіційна документація API Connect via our Gate funnel
Інші посібники: OKX API · Bybit API · MEXC API · Порівняйте їхні комісії