For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get per-event price history

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

Get per-event price history

get

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.

Query parameters
marketstringRequired

Market contract address

token_idstringOptional

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

outcome_indexintegerOptional

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

start_tsintegerRequired

Start unix timestamp

end_tsintegerOptional

End unix timestamp (default: now)

fidelityintegerOptional

Max data points returned — downsamples if the window contains more

Responses
200

OK

application/json
outcomeNamestringOptional
get/api/v1/market-data/prices/event-history
GET /api/v1/market-data/prices/event-history?market=text&start_ts=1 HTTP/1.1
Host: rest.ft.42.space/
Accept: */*
{
  "history": [
    {
      "collateral": 1,
      "mintedQuantity": 1,
      "p": 1,
      "payout": 1,
      "t": 1
    }
  ],
  "outcomeName": "text"
}

Last updated