Wait for next signal
subscribe_signalLong-poll for new signals on an indicator, symbol, and resolution, resolving when a signal newer than lastSeenSignalTs appears or timedOut if none arrive.
Instructions
Long-poll for a NEW signal on (indicator, symbol, resolution). Holds the call for up to timeoutMs (1000-50000 ms) and resolves the instant a signal with time > lastSeenSignalTs is detected. Returns {signal: null, timedOut: true} if nothing happens within the window. Pair with get_indicator_signal to bootstrap lastSeenSignalTs. Idiomatic agent loop: get → subscribe → react → update watermark → loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| symbol | Yes | ||
| provider | No | ||
| indicator | Yes | Indicator key as returned by list_indicators, e.g. sniperV3 | |
| timeoutMs | No | ||
| resolution | Yes | ||
| lastSeenSignalTs | No |