REST API
Get prediction market orderbook
Authorization
bearerAuth AuthorizationBearer <token>
API key passed as Bearer token in Authorization header
In: header
Query Parameters
tokenId*string
Length
1 <= lengthdepth?number
Default
20Range
1 <= value <= 100Response Body
application/json
curl -X GET "https://loading/api/v1/prediction/orderbook?tokenId=string"{
"success": true,
"data": {
"bids": [
{
"price": 0,
"size": 0
}
],
"asks": [
{
"price": 0,
"size": 0
}
],
"spread": 0,
"midpoint": 0
},
"meta": {
"timestamp": 0,
"remaining": 0
}
}