feat: implement UHF 20Hz real-time tick streaming, Hermes multimodal copilot with voice studio, and autonomous armed quant sentinel
This commit is contained in:
@@ -108,6 +108,24 @@ class OrderExecutor:
|
||||
f"Risk: `1.0% Equity Guarded`"
|
||||
)
|
||||
|
||||
# Dispatch to n8n Webhook
|
||||
try:
|
||||
from app.engine.hermes_agent import hermes_copilot
|
||||
import asyncio
|
||||
asyncio.create_task(hermes_copilot.dispatch_n8n_webhook("ORDER_EXECUTED", {
|
||||
"ticket": result.order,
|
||||
"symbol": symbol,
|
||||
"order_type": order_type,
|
||||
"lot": lot,
|
||||
"entry_price": entry_price,
|
||||
"sl": sl_price,
|
||||
"tp": tp_price,
|
||||
"account_id": self.connector.account_id,
|
||||
"server": self.connector.server
|
||||
}))
|
||||
except Exception as e:
|
||||
logger.warning(f"Failed to dispatch n8n webhook: {e}")
|
||||
|
||||
return True, {
|
||||
"status": "executed",
|
||||
"ticket": result.order,
|
||||
|
||||
Reference in New Issue
Block a user