Skip to main content
GET
/
v1
/
price
Get Price
curl --request GET \
  --url https://api.polysimulator.com/v1/price
{
  "price": "<string>",
  "quote_at": "<string>",
  "age_ms": 123
}

Query Parameters

token_id
string | null

Required (handler-validated) — CLOB outcome token ID. Missing OR empty returns 400 {"error": "Invalid token_id"} uniformly (no 422 leak). Same handler-validation pattern as side per Polymarket's CLOB contract.

side
string | null

Required (handler-validated) — BUY returns the best BID, SELL returns the best ASK, matching Polymarket's live CLOB wire ("Returns the best bid price for BUY side or best ask price for SELL side" — PM api-reference, get-market-price). Mirrors Polymarket's strict-side contract: missing OR invalid side returns 400 {"error": "Invalid side"} uniformly (no 422 leak). For midpoint use GET /v1/midpoint; for last-traded price use GET /v1/last-trade-price.

Response

Successful Response

price
string
required
quote_at
string | null
age_ms
integer | null