Skip to main content
curl -X GET "https://api.polyhush.com/api/v1/markets/token/12345678901234567890/ticker" \
     -H "X-API-Key: your-api-key"

Path Parameters

token_id
string
required
The outcome token ID to get pricing for.

Response

token_id
string
The token ID.
last_price
number
Last traded price. May be null if no recent trades.
midpoint
number
Midpoint between best bid and ask. May be null if order book is unavailable.
best_bid
number
Best (highest) bid price. May be null if no bids on the book.
best_ask
number
Best (lowest) ask price. May be null if no asks on the book.
All price fields may be null if market data is temporarily unavailable. Always check for null values in your code.
{
  "token_id": "12345678901234567890",
  "last_price": 0.5500,
  "midpoint": 0.5475,
  "best_bid": 0.5450,
  "best_ask": 0.5500
}

Price Fields

FieldDescriptionUse Case
last_priceMost recent trade priceHistorical reference
midpointAverage of bid/askFair value estimate, P&L calculations
best_bidHighest buy orderEstimated sell price
best_askLowest sell orderEstimated buy price