Orderbook API
Access real-time orderbook data for prediction markets
Orderbook API
The Orderbook API provides access to current order book snapshots for prediction markets.
Access
Methods
getOrderbook
Get the current orderbook for a market by ticker.
getOrderbookByMint
Get the orderbook using an outcome token mint address.
Orderbook Structure
Examples
Display Orderbook
Calculate Spread
Calculate Depth
Real-time Orderbook
For real-time orderbook updates, use the WebSocket API:
See the WebSocket API for more details.