> For the complete documentation index, see [llms.txt](https://docs.42.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.42.space/for-developers/rest-api-alpha/markets/get-per-event-price-history.md).

# Get per-event price history

GET /api/v1/market-data/prices/event-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.

```json
{"openapi":"3.1.1","info":{"title":"FortyTwo Read API","version":"1.0"},"tags":[{"description":"GET /api/v1/market-data/prices/event-history","name":"get-event-price-history"}],"servers":[{"url":"https://rest.ft.42.space/"}],"paths":{"/api/v1/market-data/prices/event-history":{"get":{"description":"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.","tags":["get-event-price-history"],"summary":"Get per-event price history","parameters":[{"schema":{"type":"string"},"description":"Market contract address","name":"market","in":"query","required":true},{"schema":{"type":"string"},"description":"Outcome token ID (provide token_id or outcome_index, not both)","name":"token_id","in":"query"},{"schema":{"type":"integer"},"description":"Outcome index, 0-based (provide token_id or outcome_index, not both)","name":"outcome_index","in":"query"},{"schema":{"type":"integer"},"description":"Start unix timestamp","name":"start_ts","in":"query","required":true},{"schema":{"type":"integer"},"description":"End unix timestamp (default: now)","name":"end_ts","in":"query"},{"schema":{"type":"integer"},"description":"Max data points returned — downsamples if the window contains more","name":"fidelity","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/internal_handler.EventPriceHistoryResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ft_market-service-v2_pkg_api.ErrorResponse"}}}}}}}},"components":{"schemas":{"internal_handler.EventPriceHistoryResponse":{"type":"object","properties":{"history":{"type":"array","items":{"$ref":"#/components/schemas/internal_handler.EventPricePoint"}},"outcomeName":{"type":"string"}}},"internal_handler.EventPricePoint":{"type":"object","properties":{"collateral":{"type":"number"},"mintedQuantity":{"type":"number"},"p":{"type":"number"},"payout":{"type":"number"},"t":{"type":"integer"}}},"ft_market-service-v2_pkg_api.ErrorResponse":{"type":"object","properties":{"code":{"type":"integer"},"error":{"type":"string"},"message":{"type":"string"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.42.space/for-developers/rest-api-alpha/markets/get-per-event-price-history.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
