Skip to main content
GET
/
v1
/
ohlcv
Get OHLCV
curl --request GET \
  --url https://api.polydata.live/v1/ohlcv
{
  "data": [
    {}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.polydata.live/llms.txt

Use this file to discover all available pages before exploring further.

Returns OHLCV (open, high, low, close, volume) candles at the requested resolution.

Query Parameters

asset_id
string
required
Outcome token ID
resolution
string
default:"1h"
Candle period: 1m, 5m, 15m, 1h, 4h, 1d
start
number
Start time (Unix ms)
end
number
End time (Unix ms)
limit
number
default:"100"
Max candles (1-1000)
Candles are calculated from best_bid. Volume is the count of price-change events within the period (a proxy for activity, not actual traded size).

Response

data
array
Array of candles: {timestamp, open, high, low, close, volume}. Sorted ascending by timestamp.

Example

Get last 24 hourly candles:
curl "https://api.polydata.live/v1/ohlcv?asset_id=xxx&resolution=1h&limit=24" \
  -H "Authorization: Bearer pd_live_xxxxx"
{
  "success": true,
  "data": [
    {
      "timestamp": 1776240000000,
      "open": 0.500,
      "high": 0.520,
      "low": 0.495,
      "close": 0.510,
      "volume": 4521
    },
    {
      "timestamp": 1776243600000,
      "open": 0.510,
      "high": 0.515,
      "low": 0.498,
      "close": 0.503,
      "volume": 3910
    }
  ],
  "meta": { "count": 24, "resolution": "1h" }
}