kalshi_stream_collect
Capture a short sample of Kalshi WebSocket messages to inspect live order book changes, trades, or account fills. Connects for a specified duration, listens, then disconnects.
Instructions
Watch Kalshi's WebSocket feed for a few seconds and return the messages that arrive. Useful for seeing live order book changes, trades, or your own fills as they happen. This is a one-shot capture, not an ongoing subscription: it connects, listens for the window you ask for, then disconnects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channels | Yes | Channels to subscribe to. fill, market_positions, and user_orders cover your own account. | |
| max_messages | No | ||
| market_tickers | No | Markets to watch. Required for orderbook_delta and ticker. | |
| duration_seconds | No |