dekun
2269bc51ff
Deduct round-trip taker fees from estimated perp PnL.
...
Unify hub/instance TP profit, calc_pnl, and push/accounting to net of 0.05% per side; leave exchange floating PnL unchanged.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-17 15:12:52 +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
394793b9d2
fix: 突破加仓按 mark 触价触发,避免漏单
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-07-02 22:31:49 +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