Skip to main content
GET
/
2
/
pm
/
market
/
book
Live CLOB order book snapshot
curl --request GET \
  --url https://demo-api.mobula.io/api/2/pm/market/book
{
  "data": {
    "bids": [
      {
        "priceUSD": 123,
        "size": 123
      }
    ],
    "asks": [
      {
        "priceUSD": 123,
        "size": 123
      }
    ]
  },
  "hostname": "<string>",
  "took": 123,
  "debug": {
    "error": "<string>",
    "proxyUsed": true,
    "url": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.mobula.io/llms.txt

Use this file to discover all available pages before exploring further.

Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Query Parameters

platform
string
required
The prediction market platform (e.g., polymarket).
outcomeId
string
required
The outcome token ID to get the book for.

Response

data
object
Order book data.
hostname
string
Server node identifier.
took
number
Request processing time in milliseconds.

Usage Example

curl -X GET "https://api.mobula.io/api/2/pm/market/book?platform=polymarket&outcomeId=71321..."

Example Response

{
  "data": {
    "bids": [
      { "priceUSD": 0.34, "sizeToken": 5000 },
      { "priceUSD": 0.33, "sizeToken": 12000 },
      { "priceUSD": 0.32, "sizeToken": 8000 }
    ],
    "asks": [
      { "priceUSD": 0.36, "sizeToken": 4500 },
      { "priceUSD": 0.37, "sizeToken": 9000 },
      { "priceUSD": 0.38, "sizeToken": 15000 }
    ]
  },
  "hostname": "node-xyz",
  "took": 42
}

Query Parameters

platform
string
required
Minimum string length: 1
outcomeId
string
required
Minimum string length: 1

Response

200 - application/json

Prediction Markets response

data
object
required
hostname
string
required
took
number
required
debug
object