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​
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | The pool ID |
Query Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
scale | string | No | Time 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​
| Status | Code | Description |
|---|---|---|
| 400 | invalid_pool_id | The pool ID is not a valid integer |
| 400 | invalid_scale | The scale parameter is not one of the accepted values |
| 404 | pool_not_found | No pool exists with the given ID |
| 500 | internal_error | Unexpected server error |