Send strategy manifest to clients
This commit is contained in:
+1
-26
@@ -181,32 +181,7 @@ async fn main() -> tokio::io::Result<()> {
|
||||
signals: ctx.use_state(Vec::new()),
|
||||
logs: ctx.use_state(Vec::new()),
|
||||
inspect: ctx.use_state(InspectTarget::None),
|
||||
strategy: ctx.use_state(Some(Strategy {
|
||||
strategy: StrategyManifest {
|
||||
name: "Liquidity Sweep".to_string(),
|
||||
description:
|
||||
"Detects liquidity grabs around key support and resistance levels."
|
||||
.to_string(),
|
||||
author: "Klesty Selimaj".to_string(),
|
||||
version: "1.0.0".to_string(),
|
||||
|
||||
timeframes: vec![TimeFrame::M5, TimeFrame::M15, TimeFrame::H1],
|
||||
},
|
||||
|
||||
risk: RiskManifest {
|
||||
name: "Aggressive".to_string(),
|
||||
description: "High-risk profile with larger position sizing.".to_string(),
|
||||
author: "Klesty Selimaj".to_string(),
|
||||
version: "1.0.0".to_string(),
|
||||
|
||||
max_loss: 5,
|
||||
cooldown: TimeFrame::M15,
|
||||
},
|
||||
|
||||
mode: Mode::Auto,
|
||||
state: ItemState::Running,
|
||||
cooldown: TimeFrame::M15,
|
||||
})),
|
||||
strategy: ctx.use_state(None),
|
||||
status: ctx.use_state(None),
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user