REST APIMarkets
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.
ApiKeyAuthheader
x-api-key<token>API key authentication via the x-api-key header.
ids*array<>Up to 500 market IDs, comma-separated or repeated. A longer list is rejected.
application/json; charset=utf-8- response
Response for GET /v1/markets/quotes
success*booleandata*array<>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 } } ]}Get orderbooks for multiple markets GET
Returns orderbooks for up to 100 markets in a single call. Markets without an orderbook are omitted from the response.
Get timeseries for multiple markets GET
Paginated chance points for up to 20 markets in one call. The cursor is a single shared timestamp that advances across all markets.