Agara
Prices

Market outcome price/probability history

Last-traded-price history for one outcome token over a preset range, as TradingView-shim history ({ s, t, c }, seconds + probability 0..1) plus latestTradeAt. Step-held onto ~400 uniform points. Long-cached once the window is settled; no-cache while it overlaps the live edge.

GET
/api/v1/prices/token-history

Query Parameters

token_id
Required
string

Outcome token id (agara_market_outcomes.token_id).

rangestring

Window preset; defaults to 1d.

Default: "1d"Value in: "1h" | "6h" | "1d" | "7d" | "30d" | "all"

pointsinteger

Number of sampled points; defaults to 400.

Default: 400Minimum: 2Maximum: 1000
curl -X GET "https://app.agara.xyz/api/v1/prices/token-history?token_id=string&range=1h&points=400"

Success

{
  "s": "ok",
  "t": [
    0
  ],
  "c": [
    0
  ]
}