Query Order Book
API Description
Get the current order book (bids and asks) for a specific prediction market outcome token.
HTTP Request
GET /sapi/v1/w3w/wallet/prediction/order-book
Request Weight(IP)
200
Request Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| vendor | STRING | YES | Vendor identifier (e.g. predict_fun) |
| marketId | LONG | YES | Market ID. Must be > 0 |
| tokenId | STRING | YES | Prediction outcome token ID |
Response Example
{
"outcome": "YES",
"tokenId": "112233",
"timestamp": 1748131800000,
"bids": [
{ "price": "0.51", "size": "5000.00" },
{ "price": "0.50", "size": "12000.00" },
{ "price": "0.49", "size": "8000.00" }
],
"asks": [
{ "price": "0.52", "size": "3000.00" },
{ "price": "0.53", "size": "7500.00" },
{ "price": "0.54", "size": "10000.00" }
]
}