v1

latestOpenAPI 3.1.12026-07-23195454.2 KB
get-event-price-history

Get per-event price history

Returns one row per onchain event that touched the outcome (mint/redeem/etc), from the outcome_stats hypertable. Unlike /prices/history this is NOT bucketed or gap-filled — each point reflects the marginal price and collateral immediately after a specific event, so the chart can plot per-trade resolution for short windows. Use start_ts/end_ts to bound the window (required for start_ts since the hypertable can be large); use fidelity to downsample if the window contains more events than you want to render. Events before the outcome's first real trade are omitted — the market "seed" mint carries a distorted bootstrap price (not a real traded price), and that price is carried forward until the outcome is first traded, so the series opens on a genuine price.

get/api/v1/market-data/prices/event-history

Query parameters

marketstring required

Market contract address

token_idstring

Outcome token ID (provide token_id or outcome_index, not both)

outcome_indexinteger

Outcome index, 0-based (provide token_id or outcome_index, not both)

start_tsinteger required

Start unix timestamp

end_tsinteger

End unix timestamp (default: now)

fidelityinteger

Max data points returned — downsamples if the window contains more

Response

OK

outcomeNamestring