Get Market Price

Changed on

Fetches 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 URL
    https://api.domeapi.io/v1
  • Auth
    none 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

pricenumber required

The market price (between 0 and 1)

at_timeinteger required

The timestamp for which the price was fetched (Unix timestamp in seconds)

Example response

{
  "price": 0.999,
  "at_time": 1762164600
}

Changes

    • info

      api operation id getMarketPrice was added

    • info

      added the new optional query request parameter at_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