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.
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. |