fix: 删除零成交误判逻辑 + 各种稳定性修复

- 删除: Bitget GetTradeFee 零成交检查(PlaceMarketOrder 成功即成交)
- 修复: GetTradeFee 加 1s 延迟 + 查不到返回 0(用配置估算费兜底)
- 修复: HL InitExchange 在 NewTrader 中提前调用,避免 szDecimals 延迟
- 修复: close_failed 30 次重试上限,超限标记 failed 并清理
- 修复: DB 恢复时校验 Legs 完整性,跳过非法记录
- 修复: checkScaleIn/checkExit nil guard 防 panic
- 修复: config.go 参数调整(手续费、阈值等)
- 移除: scanner.go 中 MEW/USTC 等低流动性币对
- 添加: 更详细的下单日志(szStr、amountUSD、price)
- 添加: bin/ 到 .gitignore
This commit is contained in:
jackyu66git
2026-05-05 00:41:39 +08:00
parent 866f9906b7
commit d01a261828
6 changed files with 104 additions and 30 deletions
+1
View File
@@ -10,3 +10,4 @@ check_db.py
morning_report.sh
run_test.sh
trade_stats.txt
bin/