Skip to main content
GET
/
v1
/
prices-history
Prices History
curl --request GET \
  --url https://api.polydata.live/v1/prices-history
{
  "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 a time-series of midpoint prices, sampled at the specified fidelity interval.

Query Parameters

asset_id
string
required
Outcome token ID
start
number
required
Start time (Unix ms)
end
number
required
End time (Unix ms)
fidelity
number
default:"60"
Sampling interval in seconds (1-86400)
limit
number
default:"1000"
Max points (1-10000)

Response

data
array
Array of {t, p} where t is unix timestamp (seconds) and p is midpoint price.

Example

Get hourly prices for a day:
curl "https://api.polydata.live/v1/prices-history?asset_id=xxx&start=1776240000000&end=1776326400000&fidelity=3600" \
  -H "Authorization: Bearer pd_live_xxxxx"
{
  "success": true,
  "data": [
    { "t": 1776240000, "p": 0.503 },
    { "t": 1776243600, "p": 0.510 },
    { "t": 1776247200, "p": 0.498 }
  ],
  "meta": { "count": 24, "fidelity": 3600 }
}