OKX API logo

OKX API

OKX API

UpFreefinancial

OKX API (formerly OKEx) is OKX crypto exchange's programmatic interface — spot, derivatives, options, DeFi, NFT, with complete Web3 wallet integration.

Visit site ↗Documentation ↗Health checked 9h ago
Use it when

Top 5 global exchange, strong liquidity

Watch for

Unavailable in US

First check

Create API key in OKX account (with passphrase). GET https://www.okx.com/api/v5/market/ticker?instId=BTC-USDT for spot.

Auth
api_key
CORS
?
HTTPS
Yes
Signup
?
Latency
1103 ms
Protocol
REST, WebSocket
Pricing
free

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 1103ms
01

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.

02

What you can build

  • 1Spot + derivatives algo trading
  • 2Crypto staking yield automation
  • 3OKX Web3 wallet data integration
  • 4Copy trading strategy replication
03

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)
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://www.okx.com/<endpoint> \
  -H "Authorization: Bearer $API_KEY"
# Some providers use X-Api-Key instead — verify in the docs.
05

Getting started

Create API key in OKX account (with passphrase). GET https://www.okx.com/api/v5/market/ticker?instId=BTC-USDT for spot.

06

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.

07

Technical details

CORS: ?HTTPS: YesSignup: ?Open source: No
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
08

Tags