REST first
GET routes with query params for cacheable reads.
Optiom Data API beta
This beta reference covers the current Optiom Data routes used by the terminal: OHLCV, funding, liquidations, trades, depth, footprint and ETF flows. SDKs and CSV exports are marked preview until they are actually self-serve.
curl "https://app.optiom.io/api/tradinghub/ohlcv?symbol=BTCUSDT&timeframe=1h&limit=200" \ -H "accept: application/json"
GET routes with query params for cacheable reads.
Next routes reshape backend rows before the browser sees them.
Access is controlled by account and backend secret while self-serve keys are built.
WebSocket handoff exists for live charts, with public stream docs still preview.
Endpoint reference
/api/tradinghub/healthGETBackend liveness and transport health.
Params: -
/api/tradinghub/ohlcvGETHistorical candles for charts, backtests and notebooks.
Params: symbol, timeframe, limit, start, end
/api/tradinghub/candlesGETSame OHLCV source, shaped for the terminal chart.
Params: symbol, timeframe, max_rows, end
/api/tradinghub/fundingGETFunding rate history as time/value points.
Params: symbol, start, end, max_rows
/api/tradinghub/funding/matrixGETCross-symbol funding history for heatmaps and rankings.
Params: symbols, days, max_rows
/api/tradinghub/funding/venuesGETLatest venue-level funding comparison.
Params: -
/api/tradinghub/liquidationsGETLiquidation events and levels.
Params: symbol, start, end, max_rows
/api/tradinghub/tradesGETAggregated trades for tape, CVD and tick mode.
Params: symbol, start, end, max_rows
/api/tradinghub/depthGETBook depth snapshots for liquidity heatmaps.
Params: symbol, minutes, end, max_rows
/api/tradinghub/footprintGETFootprint candles already reshaped server-side.
Params: symbol, timeframe, bars, end
/api/tradinghub/oiGETOpen interest history for derivatives views.
Params: symbol, timeframe, bars, end
/api/tradinghub/etf-flowsGETSpot ETF daily flow summaries.
Params: asset
/api/tradinghub/ws-urlWSReturns the current live WebSocket URL for terminal charts.
Params: -
Beta contract
The current API is production-shaped but still beta-gated. Build experiments against it, but treat API keys, CSV exports and public WebSocket docs as private preview until they are marked live.
Authentication
Beta access is account-gated. Public API keys are not self-serve yet.
Caching
Live requests use a short CDN cache. Historical ranges can be cached longer.
Timeouts
Upstream Optiom Data calls are bounded. Unavailable UI routes may degrade gracefully.
Errors
Current beta routes can return empty payloads with unavailable flags while the terminal stays usable.
Units
Timestamps can be seconds or ISO input. Prices are USD/USDT unless a route states otherwise.
Exports
CSV export is still private preview. Do not build production flows around it yet.
Start with OHLCV and funding routes, then move into liquidations and order flow.
Use health and status checks before running heavier data pulls or live chart sessions.
Expect 503 for missing backend config and unavailable flags for degraded beta data.
This page now documents what exists. The next developer milestone is a generated OpenAPI file, Postman collection, and real account-level API key management.