Skip to main content
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).
marketId
string
The platform-specific market identifier (optional context).
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&marketId=0x1234...&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
}