Get Market Price
Changed onFetches the current market price for a market by token_id. When at_time is not provided, returns the most real-time price available. When at_time is provided, returns the historical market price at that specific timestamp.
Example Request (with historical timestamp):
curl 'https://api.domeapi.io/v1/polymarket/market-price/19701256321759583954581192053894521654935987478209343000964756587964612528044?at_time=1762164600'
Example Request (real-time price):
curl 'https://api.domeapi.io/v1/polymarket/market-price/19701256321759583954581192053894521654935987478209343000964756587964612528044'
get/polymarket/market-price/{token_id}
Request
- Base URLhttps://api.domeapi.io/v1
- Authnone declared
Query parameters
at_timeinteger
Example:1762164600
Optional Unix timestamp (in seconds) to fetch a historical market price. If not provided, returns the most real-time price available.
Response
Market price response
Example response
{
"price": 0.999,
"at_time": 1762164600
}Changes
- info
api operation id
getMarketPricewas added - info
added the new optional
queryrequest parameterat_time - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- info