Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Query Parameters
The prediction market platform (e.g., polymarket).
The platform-specific market identifier (optional context).
The outcome token ID to get the book for.
Response
Order book data.
Array of bid levels, sorted by price descending.
Total size in outcome tokens at this level.
Array of ask levels, sorted by price ascending.
Total size in outcome tokens at this level.
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
}