update
This commit is contained in:
parent
cd001c0c00
commit
02647e92d2
@ -622,7 +622,7 @@ class CryptoAgent:
|
||||
paper_decision = await self.decision_maker.make_decision(
|
||||
market_signal, paper_positions, paper_account, current_price, paper_pending_for_symbol
|
||||
)
|
||||
logger.info(f" 模拟盘决策: {paper_decision.get('action')} - {paper_decision.get('reasoning', '')}")
|
||||
logger.info(f" 模拟盘决策: {paper_decision.get('decision')} - {paper_decision.get('reasoning', '')}")
|
||||
await self._send_trading_decision_notification(paper_decision, market_signal, current_price, prefix="[模拟盘]")
|
||||
else:
|
||||
logger.info(f"⏸️ 模拟盘交易未启用")
|
||||
@ -636,7 +636,7 @@ class CryptoAgent:
|
||||
hyperliquid_decision = await self.decision_maker.make_decision(
|
||||
market_signal, hl_positions, hl_account, current_price, hl_pending_for_symbol
|
||||
)
|
||||
logger.info(f" Hyperliquid 决策: {hyperliquid_decision.get('action')} - {hyperliquid_decision.get('reasoning', '')}")
|
||||
logger.info(f" Hyperliquid 决策: {hyperliquid_decision.get('decision')} - {hyperliquid_decision.get('reasoning', '')}")
|
||||
await self._send_trading_decision_notification(hyperliquid_decision, market_signal, current_price, prefix="[Hyperliquid]")
|
||||
else:
|
||||
logger.info(f"⏸️ Hyperliquid 实盘交易未启用")
|
||||
@ -900,7 +900,7 @@ class CryptoAgent:
|
||||
market_signal: Dict[str, Any],
|
||||
current_price: float):
|
||||
"""执行模拟盘决策"""
|
||||
decision_type = decision.get('action', 'HOLD')
|
||||
decision_type = decision.get('decision', 'HOLD') # 修复:使用 'decision' 字段而不是 'action'
|
||||
|
||||
if decision_type == 'HOLD':
|
||||
reasoning = decision.get('reasoning', '观望')
|
||||
@ -1839,7 +1839,7 @@ class CryptoAgent:
|
||||
market_signal: Dict[str, Any],
|
||||
current_price: float):
|
||||
"""执行 Hyperliquid 决策"""
|
||||
decision_type = decision.get('action', 'HOLD')
|
||||
decision_type = decision.get('decision', 'HOLD') # 修复:使用 'decision' 字段而不是 'action'
|
||||
|
||||
if decision_type == 'HOLD':
|
||||
reasoning = decision.get('reasoning', '观望')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user