Skip to main content
GET
/
v1
/
api
/
markets
/
id
/
{id}
/
orderbook
Get market order book
curl --request GET \
  --url https://api.dotprediction.io/v1/api/markets/id/{id}/orderbook \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "market_id": "<string>",
    "platform": "<string>",
    "timestamp": "<string>",
    "yes": {
      "bids": [
        {
          "price": 123,
          "size": 123
        }
      ],
      "asks": [
        {
          "price": 123,
          "size": 123
        }
      ],
      "depth": 123
    },
    "no": {
      "bids": [
        {
          "price": 123,
          "size": 123
        }
      ],
      "asks": [
        {
          "price": 123,
          "size": 123
        }
      ],
      "depth": 123
    },
    "metadata": {
      "min_order_size": 123,
      "tick_size": 123,
      "neg_risk": true
    }
  },
  "meta": {
    "request_time": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Generate one via the dashboard or the /v1/api/auth/api-keys endpoint.

Path Parameters

id
string
required

The market ID.

Query Parameters

provider
enum<string>
required

The prediction market platform to query.

Available options:
kalshi,
polymarket,
limitless
include_raw
enum<string>

Include the raw provider response.

Available options:
true,
false

Response

Market order book data.

data
object
meta
object