REST APIMarkets

Get latest timeseries value for multiple markets

GET
/markets/timeseries/latest

Returns the current chance for up to 20 markets in one call. Missing markets are omitted.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key authentication via the x-api-key header.

Query Parameters

ids*array<>

Up to 20 market IDs, comma-separated or repeated. A longer list is rejected.

metric*"chance"

The metric to query.

Value in"chance"

Response Body

application/json; charset=utf-8
  1. response
success*boolean
data*array<>
Example Request
curl -X GET 'https://api.predict.fun/v1/markets/timeseries/latest?ids=0&metric=chance'
Example Response
{  "success": true,  "data": [    {      "marketId": 0,      "x": 0.1,      "y": 0.1    }  ]}