Prediction-market outcome order book
pm_data_orderbookFetch live prediction-market order book depth for one outcome by venue and event slug, returning bid, ask, midpoint and levels on Polymarket or Kalshi; no API key required.
Instructions
Free public live order book for one outcome of an event (the same outcome pm_data_price_history reads, or outcomeExternalMarketId). bid, ask, midpoint and level prices are 0-1 fractions, not 0-100 points. Each side is cut to its best depth levels as served, with the full level counts in bidLevels/askLevels. Polymarket and Kalshi only; orderBook: null is valid (venue not served, no resting orders, or a selected outcome book older than 10 s). This is fetch-time depth, not an executable quote: use pm_quote for that. No API key required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Event slug on that venue. | |
| depth | No | Levels per side, 1-50 (default 10). | |
| source | Yes | Venue slug, as in pm_data_events rows. | |
| outcomeExternalMarketId | No | Venue market id of another outcome on the event (from pm_data_event). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| body | No | ||
| httpStatus | Yes | ||
| ledgerStatus | No | ||
| ledgerEventId | No |