Watch live prices for a fixed window
watch_pricesMonitor live prices for instruments, collect ticks over a set duration, and return a per-instrument summary with first, last, high, low, and percentage change.
Instructions
Subscribe to the live price feed, collect ticks for a set number of seconds, then return the series with a per-instrument summary (first, last, high, low, % change). This blocks for the requested duration, so keep it short. Instruments not already subscribed are unsubscribed again afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ltp is just the last traded price; quote adds depth and OHLC. | ltp |
| seconds | No | How long to watch. The call blocks for this long. | |
| scripCodes | Yes | REST-style scrip codes, e.g. ['NSE_2885']. Use search_instruments to resolve them. | |
| includeTicks | No | Return every tick as well as the summary. Noisy on liquid names. |