REST APIMarkets

Get market last sale

GET
/markets/{id}/last-sale

Get the last sale information for a specific market.

Authorization

ApiKeyAuth
headerx-api-key<token>

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

Path Parameters

id*integer

The market's ID.

Formatint64

Response Body

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

Response for GET /v1/markets/:id/last-sale

success*boolean
data?

Last sale information

Example Request
curl -X GET 'https://api.predict.fun/v1/markets/0/last-sale'
Example Response
{  "success": true,  "data": {    "quoteType": "Ask",    "outcome": "Yes",    "priceInCurrency": "string",    "strategy": "MARKET"  }}