Skip to main content
GET
/
v1
/
book
Get Book By Token
curl --request GET \
  --url https://api.polysimulator.com/v1/book
{
  "token_id": "<string>",
  "bids": [],
  "asks": [],
  "timestamp": "<string>",
  "market": "<string>",
  "asset_id": "<string>",
  "hash": "<string>",
  "min_order_size": "<string>",
  "tick_size": "<string>",
  "neg_risk": true,
  "last_trade_price": "<string>",
  "spread": "<string>",
  "mid": "<string>",
  "stale": true
}

Query Parameters

token_id
string
required

CLOB outcome token ID

depth
integer | null

OPTIONAL trim: keep only the best N levels per side. Default (omitted) returns the FULL book — Polymarket's wire contract (PM has no depth param). Pre-2026-06-11 the default silently truncated to 10 levels (max 50), so ported depth/imbalance/queue-position logic computed on a sliver of the real book.

Required range: 1 <= x <= 500

Response

Successful Response

Polymarket-compat OrderBookSummary.

The PM-CLOB GET /book response carries metadata fields (market, asset_id, hash, timestamp, min_order_size, tick_size, neg_risk, last_trade_price) that SDK consumers ported from Polymarket clients depend on — particularly tick_size for client-side price quantization and neg_risk for routing through the correct contract. Pre-this-PR the response was a Polysimulator minimum (token_id, bids, asks, spread, mid) that would silently break PM-ported SDKs at parse time.

The legacy fields (spread, mid) are kept for back-compat with existing Polysimulator SDK consumers who relied on them. Polymarket's actual /book doesn't return either; they're Polysimulator extensions and documented as such.

token_id
string
required
bids
BookLevel · object[]
asks
BookLevel · object[]
timestamp
string | null
market
string | null
asset_id
string | null
hash
string | null
min_order_size
string | null
tick_size
string | null
neg_risk
boolean | null
last_trade_price
string | null
spread
string | null
mid
string | null
stale
boolean | null