REST APIMarkets
Get timeseries for multiple markets
Paginated chance points for up to 20 markets in one call. The cursor is a single shared timestamp that advances across all markets.
ApiKeyAuthx-api-key<token>API key authentication via the x-api-key header.
ids*array<>Up to 20 market IDs, comma-separated or repeated. A longer list is rejected.
metric*"chance"The metric to query.
"chance"resolution?stringBucket size of the data points, the same for every market. Defaults to one chosen from the length of the time range.
"1m""5m""1h""1d""1w""1M"from*integerStart of the time range in unix seconds, inclusive. It must be before to and at
most 365 days earlier.
int64to?integerEnd of the time range in unix seconds, inclusive. Defaults to now.
int64limit?integerMost distinct timestamps to return across all markets, from 1 to 250. Defaults to 50, and a value outside that range is clamped.
int32after?stringThe cursor from the previous page, to get the next one.
length <= 1024application/json; charset=utf-8- response
success*booleancursor?stringdata*resolution is shared across all markets in the request.
curl -X GET 'https://api.predict.fun/v1/markets/timeseries?ids=0&metric=chance&from=0'{ "success": true, "cursor": "string", "data": { "resolution": "1m", "markets": [ { "marketId": 0, "series": [ { "x": 0.1, "y": 0.1 } ] } ] }}Get quotes for multiple markets GET
Returns a quote for up to 500 markets in a single call. This is the cheapest way to keep a board of prices current. Markets without a live book are omitted from the response rather than returned empty, so the result may be shorter than the request.
Get latest timeseries value for multiple markets GET
Returns the current chance for up to 20 markets in one call. Missing markets are omitted.