Expand description
CLOB (Central Limit Order Book) REST API client
This module provides a client for interacting with Polymarket’s CLOB REST API, which allows fetching orderbooks, trades, and managing orders.
Structs§
- Batch
Token Request - Request for batch price/orderbook queries
- Clob
Client - CLOB REST API client
- L2Headers
- L2 authentication headers for CLOB API requests
- Midpoint
Response - Midpoint response from GET /midpoint endpoint
- Order
- Order information
- Orderbook
- Orderbook snapshot
- Price
History Point - Historical price point
- Price
History Response - Price history response
- Price
Level - Price level in the orderbook
- Price
Response - Price response from GET /price endpoint
- Spread
Request - Request for spread calculation
- Token
Prices - Price data for a single token (both sides)
- Trade
- Trade information
Enums§
- Order
Status - Order status
- Order
Type - Order type
- Price
Interval - Time interval for price history queries
- Side
- Order side (buy or sell)