REST APIMarkets
Get latest market timeseries value
GET
ApiKeyAuthheader
x-api-key<token>API key authentication via the x-api-key header.
id*integerThe market's ID.
Format
int64metric*"chance"The metric to query
Value in
"chance"application/json; charset=utf-8- response
Response for market timeseries latest
success*booleandata*Inner data for the latest timeseries response
curl -X GET 'https://api.predict.fun/v1/markets/0/timeseries/latest?metric=chance'Example Response
{ "success": true, "data": { "x": 0.1, "y": 0.1 }}