create_alert
BEHAVIOR & SIDE EFFECTS: State-mutating operation. Registers an active in-memory HFT trigger in the C++ engine (<500ns tick evaluation). When triggered, an asynchronous event is pushed via SSE to wake up the agent. Alerts auto-expire after ttl_minutes. Idempotent: repeated calls allocate distinct alert IDs.
WHEN TO USE: Proactively call this tool to eliminate continuous API polling loops when waiting for price levels, breakout corridors, volume spikes, or liquidation cascades.
WHEN NOT TO USE: Do not use to inspect registered alerts (use list_alerts) or cancel alerts (use cancel_alert). Do not use for historical data analysis.
UNIFIED BITCLI SYNTAX EXAMPLES:
'btc 95k' (Price cross)
'sol +3.5% 5m' (Velocity pump detector)
'* vol 15m x4' (Global exchange-wide whale volume spike vs SMA20)
'* liq z3' (Statistical liquidation cascade anomaly > 3σ)
'eth cvd div 15m' (Order flow CVD divergence)
'btc 90k cd=30m' (With custom 30-minute cooldown)
FAILURE MODES: If command syntax cannot be parsed, returns isError: true with syntax guidance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Unified BitCLI alert command string (e.g. 'btc 95k', '* vol 15m x4 cd=15m'). | |
| agent_id | No | Persistent agent identifier used to recover alert states across network reconnects. | default_agent |
| ttl_minutes | No | Subscription lifetime in minutes (range: 1 to 1440, default: 60). Auto-expires upon expiration. |