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 · उनकी फीस की तुलना करें