freedakgmail
|
cf1023754a
|
fix: 修复 smart_trade_engine.py 3处除零风险
- :504 buy_price 可能为0导致除零,添加 if buy_price > 0 else 0 保护
- :1006 partial_sell 日志中 pos['avg_cost'] 除零,添加 if pos['avg_cost'] else 0
- :1055 sell 日志中 pos['avg_cost'] 除零,添加 if pos['avg_cost'] else 0
|
2026-07-22 07:42:17 +08:00 |
|