GET /book
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/polymarket/bookCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeGet the full order book for an outcome token.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
token_id | query | str | required | CLOB outcome token id (clobTokenIds entry of a market) example: 36088210133441631881314822267289702467350647371635978758429075305586609425677 |
Response
type: object
data key: bids
pagination: none
sample: {
"market": "str",
"asset_id": "str",
"timestamp": "str",
"hash": "str",
"bids": "array[23]",
"asks": "array[12]",
"min_order_size": "str",
"tick_size": "str",
"neg_risk": "bool",
"last_trade_price": "str"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/polymarket/book?token_id=36088210133441631881314822267289702467350647371635978758429075305586609425677"