Skip to main content
GET
/
v1
/
markets
/
{condition_id}
/
book
Get Order Book
curl --request GET \
  --url https://staging-api.polysimulator.com/v1/markets/{condition_id}/book \
  --header 'X-API-Key: <x-api-key>'
{
  "token_id": "<string>",
  "bids": [],
  "asks": [],
  "timestamp": "<string>",
  "spread": "<string>",
  "mid": "<string>"
}

Headers

X-API-Key
string
required

Your PolySimulator API key

Path Parameters

condition_id
string
required

Query Parameters

outcome
string
default:Yes

Outcome to get book for

depth
integer
default:10

Number of levels

Required range: 1 <= x <= 50

Response

Successful Response

token_id
string
required
bids
BookLevel · object[]
asks
BookLevel · object[]
timestamp
string | null
spread
string | null
mid
string | null