Client Initialization
Public methods require the client to initialize with the host URL and Polygon chain ID.- TypeScript
- Python
Health Check
getOk()
Health check endpoint to verify the CLOB service is operational.Signature
Markets
getMarket()
Get details for a single market by condition ID.Signature
Response
getMarkets()
Get details for multiple markets paginated.Signature
Response
getSimplifiedMarkets()
Get simplified market data paginated for faster loading.Signature
Response
getSamplingMarkets()
Signature
Response
getSamplingSimplifiedMarkets()
Signature
Response
Order Books and Prices
calculateMarketPrice()
Signature
Params
Response
getOrderBook()
Get the order book for a specific token ID.Signature
Response
getOrderBooks()
Get order books for multiple token IDs.Signature
Params
Response
getPrice()
Get the current best price for buying or selling a token ID.Signature
Response
getPrices()
Get the current best prices for multiple token IDs.Signature
Params
Response
getMidpoint()
Get the midpoint price (average of best bid and best ask) for a token ID.Signature
Response
getMidpoints()
Get the midpoint prices (average of best bid and best ask) for multiple token IDs.Signature
Params
Response
getSpread()
Get the spread (difference between best ask and best bid) for a token ID.Signature
Response
getSpreads()
Get the spreads (difference between best ask and best bid) for multiple token IDs.Signature
Params
Response
getPricesHistory()
Get historical price data for a token.Signature
Params
Response
Trades
getLastTradePrice()
Get the price of the most recent trade for a token.Signature
Response
getLastTradesPrices()
Get the price of the most recent trade for a token.Signature
Params
Response
getMarketTradesEvents
Signature
Response
Market Parameters
getFeeRateBps()
Get the fee rate in basis points for a token.Signature
Response
getTickSize()
Get the tick size (minimum price increment) for a market.Signature
Response
getNegRisk()
Check if a market uses negative risk (binary complementary tokens).Signature
Response
Time & Server Info
getServerTime()
Get the current server timestamp.Signature
Response