get_market_orderbook
Retrieve the live order book for any Predict.fun market – showing current bids and asks with prices and sizes. Use market ID or condition ID to get the current state, not historical trades.
Instructions
Get the live order book for a Predict.fun market — current bids and asks with prices and sizes. Requires PREDICT_API_KEY. Provide market_id (integer from Predict.fun API) or condition_id. Use this to see the current state of the market, not historical trades.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_market_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition_id | No | The conditionId (0x hex string) of the market — used to look up the numeric market_id from cache | |
| market_id | No | The numeric market ID from Predict.fun API (e.g. 1187). More reliable than condition_id lookup. |