create_alert
Define price-action conditional alerts for a symbol and timeframe. Triggers when conditions match, with cooldown and deduplication to prevent repeats, and optionally queues a pending order for approval.
Instructions
Tek sembol+timeframe için koşullu alarm tanımlar. Koşul, scan_market ile aynı allowlisted filtre AST'sidir. State machine: armed→triggered→cooldown→armed; aynı veri penceresi tekrar tetiklenmez (dedup).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| symbol | No | ||
| condition | No | Filtre AST'si (scan_market ile aynı türler) | |
| timeframe | No | ||
| order_spec | No | Opsiyonel: alarm tetiklenince onay bekleyen emir kaydı oluşturur (awaiting_approval). Emir OTOMATİK açılmaz — approve_pending_order gerekir. Alanlar: account_id (zorunlu), symbol (zorunlu), side (zorunlu, BUY|SELL), order_type (market|limit), risk_pct (ZORUNLU, (0,1] — boyutlandırma için), entry (order_type=limit ise zorunlu; sonlu sayı), stop_loss (sonlu sayı). Sayılar sonlu olmalıdır (NaN/Infinity kabul edilmez). | |
| request_id | No | ||
| idempotency_key | No | ||
| cooldown_seconds | No |