Agara

Market outcome price/probability history

GET/api/v1/prices/token-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.

Query Parameters

token_id*string

Outcome token id (agara_market_outcomes.token_id).

range?string

Window preset; defaults to 1d.

Default"1d"

Value in

  • "1h"
  • "6h"
  • "1d"
  • "7d"
  • "30d"
  • "all"
points?integer

Number of sampled points; defaults to 400.

Range2 <= value <= 1000
Default400

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/prices/token-history?token_id=string"
{  "s": "ok",  "t": [    0  ],  "c": [    0  ],  "latestTradeAt": 0}