feat: archive trades by close time and show open time on live positions

Sort inner-archive daily trades by closed_at_ms; add open time and live hold duration to instance and hub position cards, with exchange margin on hub footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-15 06:20:18 +08:00
parent ad1c08a2cc
commit 869728ce10
11 changed files with 230 additions and 7 deletions
+2
View File
@@ -1359,6 +1359,8 @@ def _merge_flask_order_price_fields(hub_mon: dict | None, snap: dict | None) ->
"stop_loss_display",
"take_profit_display",
"display_rr_ratio",
"exchange_initial_margin",
"plan_margin",
"time_close_enabled",
"time_close_hours",
"time_close_at_ms",