Order book
Market data
Order book
Get the live order book for one or more outcomes (CLOB markets only)
GET
Order book
Documentation Index
Fetch the complete documentation index at: https://docs.bayse.markets/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
No authentication required.Query parameters
One or more outcome UUIDs to fetch order books for (comma-separated). Outcome IDs are returned by List events and Get event.
Number of price levels to return on each side of the book.
Currency for price display:
USD or NGN.Example request
Response
Returns an array of order books, one per requested outcome. Each book contains the top bids (buy orders) and asks (sell orders) at the requested depth.The market ID this order book belongs to.
The outcome ID this order book is for.
ISO 8601 timestamp of the order book snapshot.
Buy orders sorted by price (highest first). Each entry has
price, quantity, and total.Sell orders sorted by price (lowest first). Each entry has
price, quantity, and total.The last traded price for this outcome (if available).
The side of the last trade:
BUY or SELL (if available).This endpoint is only meaningful for CLOB markets. AMM markets do not have an order book.