Skip to main content

GET /api/v1/markets/{id}/chart

Returns price history chart data for a single market. Each data point represents the YES probability at a given timestamp, suitable for rendering a price line chart.

Authentication​

None required. This is a public endpoint.

Request​

Path Parameters​

ParameterTypeRequiredDescription
idintegerYesThe market ID

Example​

curl https://intotes.com/api/v1/markets/101/chart

Response​

200 OK​

Returns an array of data points ordered chronologically. Each point contains a timestamp and the YES probability at that moment.

[
{
"timestamp": "2026-04-04T12:00:00Z",
"probability": 0.40
},
{
"timestamp": "2026-04-04T13:00:00Z",
"probability": 0.42
},
{
"timestamp": "2026-04-04T14:00:00Z",
"probability": 0.38
},
{
"timestamp": "2026-04-04T15:00:00Z",
"probability": 0.45
},
{
"timestamp": "2026-04-04T16:00:00Z",
"probability": 0.44
}
]

Errors​

StatusCodeDescription
400invalid_market_idThe market ID is not a valid integer
404market_not_foundNo market exists with the given ID
500internal_errorUnexpected server error