feat: strategy trade snapshots, DCA detail, and hub trend layout
Persist ended trend pullback and roll group snapshots to a unified records page; show replenishment tiers on instance and hub cards with horizontal single-position layout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -76,6 +76,12 @@ def _close_roll_group(
|
||||
"UPDATE roll_groups SET status='closed', updated_at=? WHERE id=? AND status='active'",
|
||||
(_now(cfg), gid),
|
||||
)
|
||||
try:
|
||||
from strategy_snapshot_lib import save_roll_group_snapshot
|
||||
|
||||
save_roll_group_snapshot(cfg, conn, group, result_label="结束")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
def _reconcile_roll_groups(conn, cfg: dict) -> None:
|
||||
|
||||
Reference in New Issue
Block a user