OKX
Access comprehensive market data from OKX through CoinAPI's unified API.
OKX Exchange Integration
OKX (formerly OKEx) is one of the world's largest cryptocurrency exchanges, offering spot, margin, futures, perpetual swaps, and options trading.
Overview
CoinAPI provides full OKX integration:
- Complete market coverage - Spot, futures, perpetuals, options
- Global reach - One of the highest volume exchanges
- Diverse products - Extensive derivative offerings
Available Data Types
OHLCV Data
Comprehensive candlestick data:
- All market types supported
- Standard and custom timeframes
- Volume and trade count metrics
Trade Data
Tick-by-tick execution data:
- Individual trade records
- Precise timestamp data
- Side indicators
Order Book Data
Full market depth:
- Level 2 order books
- Real-time streaming updates
- Historical snapshots
Supported Markets
OKX offers extensive trading options:
- Spot: 300+ trading pairs
- Perpetual swaps: USDT and coin-margined
- Futures: Weekly, bi-weekly, quarterly
- Options: BTC and ETH options
Key Features
- High volume - Top 3 exchange by trading volume
- Product variety - Most comprehensive derivatives
- Global availability - Serving users worldwide
Derivatives Data
Access comprehensive derivatives information:
- Funding rates
- Open interest
- Mark prices
- Settlement data
Getting Started
- Sign up for CoinAPI
- Get your API credentials
- Use
exchange_id=OKXin requests
Example
curl -X GET "https://rest.coinapi.io/v1/ohlcv/OKX_SPOT_BTC_USDT/latest?period_id=1DAY" \
-H "X-CoinAPI-Key: YOUR_API_KEY"