Market outcome price/probability history
/api/v1/prices/token-historyLast-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
Outcome token id (agara_market_outcomes.token_id).
Window preset; defaults to 1d.
"1d"Value in
- "1h"
- "6h"
- "1d"
- "7d"
- "30d"
- "all"
Number of sampled points; defaults to 400.
2 <= value <= 1000400Response 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}Settlement-lineage price history GET
Price history for an agara security + provider over [from, to], as TradingView-shim history ({ s, t, c }, seconds + close). Returns roughly 30 points spanning the window, served DB-first (our shared tick cache) and filled with the fewest external calls — sampled point reads for a tight window, OHLCV minute bars for a wide one. Long-cached once the range is in the immutable past; no-cache while it overlaps the live edge.
Ranked market outcome price/probability histories POST
Ranks AGARA outcome tokens with recorded trade-price history by last traded price, highest first. Tokens without history are omitted; a recorded zero price is eligible. Equal prices retain request order. Each returned history ends at the same last traded price used for ranking.