Skip to main content
POST
/
api
/
polymarket
/
markets
/
book
/polymarket/markets/book
curl --request POST \
  --url https://api.anysite.io/api/polymarket/markets/book \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "token_id": "<string>",
  "timeout": 300
}
'
[
  {
    "token_id": "<string>",
    "@type": "@polymarket_order_book",
    "condition_id": "<string>",
    "hash": "<string>",
    "bids": [],
    "asks": [],
    "best_bid": 123,
    "best_ask": 123,
    "spread": 123,
    "midpoint": 123,
    "last_trade_price": 123,
    "tick_size": 123,
    "min_order_size": 123,
    "neg_risk": true,
    "updated_at": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
token_id
string
required

Outcome token id (clob token id of one market outcome)

Minimum string length: 1
Example:

"21742633143463906290569050155826241533067272736897614950488156847949938836455"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

token_id
string
required
@type
string
default:@polymarket_order_book
condition_id
string | null
hash
string | null
bids
PolymarketOrderLevel · object[]
asks
PolymarketOrderLevel · object[]
best_bid
number | null
best_ask
number | null
spread
number | null
midpoint
number | null
last_trade_price
number | null
tick_size
number | null
min_order_size
number | null
neg_risk
boolean | null
updated_at
integer | null