dekun
7352d10254
Fix hub total floating PnL by excluding OKX options from swap agent.
...
Option legs were scored with linear swap math and then added again from the options snapshot, inflating 总浮盈亏 and 持有仓位.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-05 22:13:22 +08:00
dekun
b733e551a0
Normalize fullwidth punctuation to ASCII across codebase.
...
Add scripts/normalize_ambiguous_unicode.py; fix corrupted patch_instance_theme_templates.py. Preserves curly quotes in string literals; removes Git homoglyph warnings on .env.example.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-08 23:42:26 +08:00
dekun
9f67de3677
refactor: 移除 gate_bot,统一为三所架构并更新文档
...
删除 crypto_monitor_gate_bot 目录,中控与子代理改为 binance/okx/gate 三账户;
文档与 UI 文案「四所」改为「三所」;新增清库前一次性配置备份脚本。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-04 22:00:08 +08:00
dekun
5797d49d8a
refactor: 将共用代码迁入 lib/ 模块化目录
...
统一 strategy、key_monitor、trade、hub 等共用库到 lib/ 子包,并补充 lib-structure 文档,便于四所与中控维护。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 16:23:09 +08:00
dekun
673bcbdc70
fix: align unrealized PnL across four exchange instances via hub_position_metrics
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:25:06 +08:00
dekun
806350231e
fix(hub): show contract-based unrealized PnL in monitor and chart
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:20:36 +08:00
dekun
e6361a7fcc
fix(hub): live market PnL and Gate drag SL place
...
Parse Gate unrealised_pnl in agent; refresh hub market floating PnL from board and trends; clamp Gate TP/SL triggers before place.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 20:02:23 +08:00
dekun
2a9602610e
fix(hub): align Binance chart ticks and improve monitor mark price
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-03 22:33:59 +08:00
dekun
c1fda1e7d5
feat(hub): show exchange mark price on monitor positions
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-03 22:25:23 +08:00