Add execution plan for sell decisions: amount, risk management, take-profit; include execution step in TradingGraph workflow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-05-16 13:50:28 +02:00
parent 17c9ee27c0
commit 98c1e366a5
3 changed files with 61 additions and 6 deletions
+11
View File
@@ -20,6 +20,16 @@ export interface DebateRound {
researcher: 'bullish' | 'bearish'
}
export interface ExecutionPlan {
amount: number // number of shares to trade
riskManagement: {
maxLossPercent?: number
method?: string
}
takeProfit?: number // target price for take-profit
note?: string
}
export interface TradingDecision {
action: 'buy' | 'sell' | 'hold'
confidence: number
@@ -28,6 +38,7 @@ export interface TradingDecision {
reasoning: string
agentSignals: AgentSignal[]
debateRounds: DebateRound[]
executionPlan?: ExecutionPlan
}
export interface AgentConfig {