Set up your API key
Build faster with AI
TL;DR
Use /simple/price for spot prices, /coins/{id}/ohlc for candlestick charts, /coins/{id}/market_chart/range for backtesting, and the onchain OHLCV endpoints for sub-minute DEX data.
Use /simple/price for spot prices, /coins/{id}/ohlc for candlestick charts, /coins/{id}/market_chart/range for backtesting, and the onchain OHLCV endpoints for sub-minute DEX data.
Replace YOUR_API_KEY in the examples below with your actual key. Get one here →
CEX Trading Workflow
Screen assets — /coins/markets
Scan the market to find what to trade. Returns bulk data for ranking by volume, price change, or market cap.
- Pro API
- Demo API
| Key param | Use |
|---|---|
order | volume_desc surfaces the most liquid assets |
price_change_percentage | 1h,24h,7d for multi-timeframe momentum |
per_page | Up to 250 per page |
Monitor prices — /simple/price
Poll spot prices for your selected assets. Minimal overhead — ideal for trading loops.
- Pro API
- Demo API
Analyze charts — /coins/{id}/ohlc
Fetch OHLC candles for technical analysis (RSI, MACD, Bollinger Bands, etc.).Response format:
- Pro API
- Demo API
[timestamp, open, high, low, close] — timestamp is the candle close time.Auto-granularity based on
days:- 1–2 days → 30-min candles
- 3–30 days → 4-hour candles
- 31+ days → 4-day candles
interval=daily or interval=hourly.Find execution venue — /coins/{id}/tickers
Compare trading pairs across CEXs and DEXs — bid/ask spreads, volume, and market depth.
- Pro API
- Demo API
| Key param | Use |
|---|---|
exchange_ids | Filter to exchanges you trade on |
depth | Includes cost_to_move_up_usd / cost_to_move_down_usd — how much capital moves price 2% |
Backtest — /coins/{id}/ohlc/range or /market_chart/range
Pull historical data for a specific time window.Both accept ISO dates and UNIX timestamps for
- OHLC candles for a custom range:
- Pro API
- Demo API
- Price + volume + market cap for a custom range:
- Pro API
- Demo API
from/to.Onchain DEX Trading
For DeFi-native strategies — pool-level OHLCV with sub-minute granularity and individual trade feeds.Pool OHLCV — sub-minute candles
Supports Response format:
second, minute, hour, and day timeframes with customizable aggregation (e.g., 5-min candles).- Pro API
- Demo API
[timestamp, open, high, low, close, volume].| Key param | Use |
|---|---|
aggregate | Combine candles — 5 for 5-min, 4 for 4-hour |
limit | Up to 1000 data points |
before_timestamp | Paginate backward for historical data |
currency | usd for fiat or token for base-token denomination |
Trade feed — last 300 trades
Monitor execution, analyze microstructure, or trigger alerts on large swaps.Use
- Pro API
- Demo API
trade_volume_in_usd_greater_than to filter noise.
