REST APIMarkets

Get latest market timeseries value

GET
/markets/{id}/timeseries/latest

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Path Parameters

id*integer

The market's ID.

Formatint64

Query Parameters

metric*"chance"

The metric to query

Value in"chance"

Response Body

application/json; charset=utf-8
  1. response

Response for market timeseries latest

success*boolean
data*

Inner data for the latest timeseries response

Example Request
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  }}