REST API

Get prediction market orderbook

GET
/prediction/orderbook

Authorization

bearerAuth
AuthorizationBearer <token>

API key passed as Bearer token in Authorization header

In: header

Query Parameters

tokenId*string
Length1 <= length
depth?number
Default20
Range1 <= value <= 100

Response 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
  }
}