Skip to main content

GET /api/v1/pools/{id}/ratio/chart

Returns the historical ratio of outcome probabilities for a pool over time. Useful for rendering probability trend charts.

Authentication​

None required. This is a public endpoint.

Request​

Path Parameters​

ParameterTypeRequiredDescription
idintegerYesThe pool ID

Query Parameters​

ParameterTypeRequiredDescription
scalestringNoTime scale for data points. One of: 1h, 1d, 1w, 1m. Defaults to 1d.

Example​

curl "https://intotes.com/api/v1/pools/42/ratio/chart?scale=1h"

Response​

200 OK​

Returns an array of data points. Each point contains a timestamp and an array of values representing the probability ratio for each outcome at that point in time.

[
{
"timestamp": "2026-04-04T12:00:00Z",
"values": [0.55, 0.45]
},
{
"timestamp": "2026-04-04T13:00:00Z",
"values": [0.58, 0.42]
},
{
"timestamp": "2026-04-04T14:00:00Z",
"values": [0.52, 0.48]
},
{
"timestamp": "2026-04-04T15:00:00Z",
"values": [0.60, 0.40]
}
]

Errors​

StatusCodeDescription
400invalid_pool_idThe pool ID is not a valid integer
400invalid_scaleThe scale parameter is not one of the accepted values
404pool_not_foundNo pool exists with the given ID
500internal_errorUnexpected server error