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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user