get_orderbook
Fetch displayed YES and NO order books as [price, size] levels, best first, to gauge basket fill near the quoted price before paper_order.
Instructions
Get the displayed order book for YES and NO as [price, size] levels, best first.
Prices are dollars per contract and sizes are contracts. Use it to see how
much of a basket can fill near the quoted price before paper_order; use
get_quote when only the top of book matters. Kalshi publishes bids only, so
each side's asks are derived from the other side's bids (a YES ask of p is a
NO bid of 1 - p). Public data, no API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Price levels per side, 1-50 (clamped). Default 10. | |
| venue | Yes | Venue: 'kalshi' or 'polymarket'. | |
| market_id | Yes | Kalshi market ticker (e.g. KXFEDDECISION-28JAN-H0) or Polymarket market id (e.g. 2589812), as returned by search_markets. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||