OKX API
v5 unified REST + WebSocket · one account model across spot, swap and options
키 안전하게 생성
- Profile → API → Create API key.
- OKX adds a passphrase on top of key + secret — you choose it at creation and send it with every signed request.
- Permissions: start with Read; add Trade only for a live engine; never enable Withdraw.
- Bind IPs — required for keys with Trade permission that you want long-lived.
- Use the demo-trading flag (x-simulated-trading: 1) to test against paper balances first.
권한: 부여할 항목
- Read: account, positions, bills — enough for dashboards and trackers.
- Trade: places and cancels orders; combine with sub-accounts to sandbox exposure.
- Withdraw: never grant it to any third party, including us.
코딩 전 알아두면 좋은 점
- v5 unifies spot/margin/swap/futures/options under one account and one API.
- Copy-trading has an official public endpoint — it powers our OKX leaders page.
- WebSocket for streams, REST for state — OKX documents both cleanly with per-endpoint rate limits.
누구에게도 출금 권한을 부여하지 마세요. 당사나 어떤 서비스에도 안 됩니다. 당사 연결 흐름은 출금 권한이 있는 키를 거부합니다. 거래 키는 거래를 잃을 수 있지만, 출금 키는 계정을 잃을 수 있습니다.
이 키를 엔진에 연결 → 공식 API 문서 Create an OKX account
기타 가이드: Gate.io API · Bybit API · MEXC API · 수수료 비교