删除永续下单监控与划转强平,保留关键位监控并完成回归审计。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-07 13:04:21 +08:00
parent 7c5a6e25b2
commit c021c38e2d
39 changed files with 5841 additions and 10637 deletions
+4 -17
View File
@@ -237,12 +237,8 @@ def _table_exists(conn, name: str) -> bool:
def collect_orders(conn) -> list[dict[str, Any]]:
if not _table_exists(conn, "order_monitors"):
return []
rows = conn.execute(
"SELECT * FROM order_monitors WHERE status='active' ORDER BY id DESC"
).fetchall()
return [_format_order_item(_row_dict(r)) for r in rows]
del conn
return []
def collect_keys(conn) -> list[dict[str, Any]]:
@@ -265,17 +261,8 @@ def collect_trends(conn) -> list[dict[str, Any]]:
def collect_rolls(conn) -> list[dict[str, Any]]:
if not _table_exists(conn, "roll_groups") or not _table_exists(conn, "order_monitors"):
return []
try:
rows = conn.execute(
"""SELECT g.* FROM roll_groups g
INNER JOIN order_monitors m ON m.id = g.order_monitor_id AND m.status='active'
WHERE g.status='active' ORDER BY g.id DESC"""
).fetchall()
except Exception:
return []
return [_format_roll_item(_row_dict(r)) for r in rows]
del conn
return []
def collect_options_items(