REST APIMarkets
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.
ApiKeyAuthheader
x-api-key<token>API key authentication via the x-api-key header.
ids*array<>Up to 100 market IDs, comma-separated or repeated. A longer list is rejected.
application/json; charset=utf-8- response
Response for GET /v1/markets/orderbooks
success*booleandata*array<>curl -X GET 'https://api.predict.fun/v1/markets/orderbooks?ids=0'Example Response
{ "success": true, "data": [ { "marketId": 0, "updateTimestampMs": 0, "lastOrderSettled": { "id": "string", "price": "string", "kind": "string", "marketId": 0, "side": "Ask", "outcome": "Yes" }, "asks": [ [ 0.1 ] ], "bids": [ [ 0.1 ] ] } ]}Get latest market timeseries value GET
Previous Page
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.