Skip to main content
The Order Book endpoints expose central limit order book (CLOB) depth for Polymarket positions: the current bids and asks for a position, the order books across a whole market, and historical depth and spread.

Live depth

History

Market context

Example

import { StructClient } from "@structbuild/sdk";

const client = new StructClient({ apiKey: "YOUR_API_KEY" });

const { data: book } = await client.orderBook.getOrderBook({ position_id: "0xabc..." });

const { data: spread } = await client.orderBook.getSpreadHistory({ position_id: "0xabc..." });
Last modified on June 16, 2026