jackyu66git and Claude Opus 4.7
2f4d7869a9
fix: 重启后加仓数据恢复 + scale_count/amount_usd 实时持久化
...
- restoreOpenPositions 从 orders 表 count 加仓次数,正确设置 ScaleLevels 和 AmountUSD
- 加仓时立即持久化 amount_usd 和 scale_count 到 trades 表(不等到平仓)
- PnL 图表支持单笔交易显示(原点+累计PnL连线)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-05 03:19:26 +08:00
jackyu66git
0aa9923067
fix: full arb table + net profit columns in price view
...
- ArbTable: removed slice(0,10) cap, shows all 42 opps (21x2)
- PriceTable: added net_bg_to_hl and net_hl_to_bg columns
- Backend SSE: sends net profit for both directions per coin
2026-05-04 18:26:49 +08:00
jackyu66git
24727e4ec4
refactor: HL EVM signing via sonirico/go-hyperliquid SDK
2026-05-04 16:16:21 +08:00
jackyu66git
f29e78a435
fix: db migration tab char corrupted, restore historical trades
2026-05-04 13:50:49 +08:00
jackyu66git
ddaa5badd2
fix: 重启后总PnL回到0的问题 + 前端PnL图表公式统一
...
- trader.go: NewTrader 启动时从DB GetAllClosedTrades() 加载所有已平仓交易到 closedTrades
- trader.go: 新增 safeFloat/safeStr 辅助函数处理DB空指针
- db/trade_repo.go: 新增 GetAllClosedTrades() 方法
- frontend: PnL图表标题和曲线改用 2*AmountUSD*NetPnl/100 公式,与后端Stats一致
2026-05-04 06:23:35 +08:00
jackyu66git
7b8ad6abc8
feat: 交易详情净收益总计加美元金额
2026-05-04 05:43:11 +08:00
jackyu66git
af44e14f39
feat: 交易详情订单按交易所+时间排序, 加仓位列, 多空Pnl显示USD金额
2026-05-04 05:38:08 +08:00
jackyu66git
c44d763ab0
fix: 持仓面板 pnl_est 显示改为美元符号(后台已改为USD)
2026-05-04 04:38:52 +08:00
jackyu66git
0288dc8284
feat: 手续费改为逐笔USD累算 + Vite React前端 + system_orders表 + README
2026-05-04 04:34:27 +08:00