REST APIMarkets

Get quotes for multiple markets

GET
/markets/quotes

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.

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Query Parameters

ids*array<>

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

Response Body

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

Response for GET /v1/markets/quotes

success*boolean
data*array<>
Example Request
curl -X GET 'https://api.predict.fun/v1/markets/quotes?ids=0'
Example Response
{  "success": true,  "data": [    {      "marketId": 0,      "updateTimestampMs": 0,      "bestBid": {        "price": 0.1,        "size": 0.1      },      "bestAsk": {        "price": 0.1,        "size": 0.1      }    }  ]}