dwlf_create_subscription
Creates event subscriptions that send alerts to channels like Telegram for strategy entries/exits, custom events, or indicator signals across selected symbols and timeframes.
Instructions
Create a new subscription. Four shapes are supported, distinguished by eventTypeId:
strategy.entry.triggered— requiresstrategyId; pair withmode: 'confirm'or'auto'. Confirm-mode creates a planned Trade for review; auto-mode opens it directly.strategy.exit.triggered— requiresstrategyId. Fires when the strategy's exit graph matches, and also delivers that strategy's stop alerts: every live stop-out (fixed or trailing) and a trailing stop locking in breakeven, then each further whole R.strategy.stop.hit/strategy.stop.movedcannot be subscribed to directly.custom_event— requirescustomEventId. Fires when that custom event fires.any indicator event id (e.g.
cycle.low.confirmed,cycle.high.window.early,swing_low_break). Fires on the raw indicator event.
symbols controls scope: an array of symbols, or ['*'] for a wildcard across the whole account universe. timeframes accepts ['1d'], ['1w'], or ['*'] for any. channels is an array of delivery destinations — currently { type: 'telegram', destination: { chatId: <id> }, enabled: true }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"eventTypeId": "<eventTypeId>",
"symbols": "<symbols>",
"channels": "<channels>"
},
"name": "dwlf_create_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Only meaningful for strategy.entry.triggered. `confirm` = planned Trade for review, `auto` = trade opens directly. Defaults to `confirm`. | |
| enabled | No | Whether the subscription is active. Defaults to true. | |
| symbols | Yes | Symbols to scope to. Use ['*'] for wildcard across the account universe. | |
| channels | Yes | Delivery channels, e.g. [{ type: 'telegram', destination: { chatId: <number> }, enabled: true }]. | |
| quietHours | No | ||
| strategyId | No | Required when eventTypeId is `strategy.entry.triggered` or `strategy.exit.triggered`. | |
| timeframes | No | Timeframes to scope to, e.g. ['1d'], ['1w'], or ['*']. Defaults to ['*']. | |
| eventTypeId | Yes | Event source: `strategy.entry.triggered`, `strategy.exit.triggered`, `custom_event`, or an indicator event id like `cycle.low.confirmed`. | |
| customEventId | No | Required when eventTypeId is `custom_event`. | |
| dedupeWindowMinutes | No | ||
| riskPerTradeOverride | No | ||
| accountBalanceOverride | No | ||
| maxConcurrentTradesOverride | No |