OKX API
OKX API
OKX API (formerly OKEx) is OKX crypto exchange's programmatic interface — spot, derivatives, options, DeFi, NFT, with complete Web3 wallet integration.
Top 5 global exchange, strong liquidity
Unavailable in US
Create API key in OKX account (with passphrase). GET https://www.okx.com/api/v5/market/ticker?instId=BTC-USDT for spot.
Uptime · 30-day window
About this API
OKX (formerly OKEx) was founded 2017 by Star Xu (Chinese background), rebranded to OKX in 2022 for internationalization. Typically ranks in top 5 exchanges globally. Differentiated by "unified account" — OKX launched unified trading account design before Binance (spot, perpetuals, options in one account, cross-product margin), combined with its Web3 wallet integration (one wallet manages both CEX balance and on-chain DeFi assets) — advanced experience for high-end users. API is feature-rich (v5 is current main version), complete SDKs. Slightly smaller than Binance/Bybit but functionally not weaker.
What you can build
- 1Spot + derivatives algo trading
- 2Crypto staking yield automation
- 3OKX Web3 wallet data integration
- 4Copy trading strategy replication
Strengths & limitations
Strengths
- Top 5 global exchange, strong liquidity
- Unified trading account design is advanced
- Deep Web3 wallet integration (one API manages both CEX assets and DeFi)
Limitations
- Unavailable in US
- API docs historically Chinese-first (English quality improved now)
Example request
curl https://www.okx.com/<endpoint> \
-H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.Getting started
Create API key in OKX account (with passphrase). GET https://www.okx.com/api/v5/market/ticker?instId=BTC-USDT for spot.
FAQ
OKX Chinese or English docs better?+
Post-v5, Chinese-English parity has improved a lot. But deep issues still get faster responses in Chinese community.
Technical details
- Auth type
- api_key
- Pricing
- free
- Rate limit
- public 10 req/s;private 60 req/s 每用户
- Protocols
- REST, WebSocket
- SDKs
- python, javascript, go, java
- Response time
- 1103 ms
- Last health check
- 5/12/2026, 7:38:00 AM