Public CLOB market, order-book, and price endpoint wrappers.
These functions are intentionally thin wrappers over PolymarketClob.HTTP.
Summary
Functions
Gets current CLOB market info by condition ID.
Gets the legacy fee-rate response for a token ID when available.
Gets the last trade price for a token ID.
Gets last trade prices for multiple token IDs using Python client body shape.
Gets a market by condition ID.
Gets market metadata by CLOB token ID.
Gets the live-activity trades stream for a market by condition ID.
Lists markets.
Gets the midpoint price for a token ID.
Gets midpoints for multiple token IDs using Python client body shape.
Gets the negative-risk flag for a token ID.
Gets the order book for a token ID.
Gets order books for multiple token IDs using Python client body shape.
Gets a side-specific price for a token ID.
Gets side-specific prices for multiple token IDs using Python client body shape.
Gets historical prices using CLOB query parameter names.
Lists markets with sampling, paginated by :next_cursor.
Lists simplified markets with sampling, paginated by :next_cursor.
Lists simplified markets, paginated by :next_cursor.
Gets the spread for a token ID.
Gets spreads for multiple token IDs using Python client body shape.
Gets the minimum tick size for a token ID.
Returns CLOB server health.
Returns CLOB server time.
Returns CLOB server version.
Types
@type result() :: {:ok, term()} | {:error, PolymarketClob.Error.t()}
Functions
Gets current CLOB market info by condition ID.
Gets the legacy fee-rate response for a token ID when available.
Gets the last trade price for a token ID.
Gets last trade prices for multiple token IDs using Python client body shape.
Gets a market by condition ID.
Gets market metadata by CLOB token ID.
Gets the live-activity trades stream for a market by condition ID.
Lists markets.
Gets the midpoint price for a token ID.
Gets midpoints for multiple token IDs using Python client body shape.
Gets the negative-risk flag for a token ID.
Gets the order book for a token ID.
Gets order books for multiple token IDs using Python client body shape.
Gets a side-specific price for a token ID.
Gets side-specific prices for multiple token IDs using Python client body shape.
Gets historical prices using CLOB query parameter names.
Lists markets with sampling, paginated by :next_cursor.
Lists simplified markets with sampling, paginated by :next_cursor.
Lists simplified markets, paginated by :next_cursor.
Gets the spread for a token ID.
Gets spreads for multiple token IDs using Python client body shape.
Gets the minimum tick size for a token ID.
Returns CLOB server health.
Returns CLOB server time.
Returns CLOB server version.