feat: 关键位回调/突破触价开仓拆分与穿越触发

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-29 10:49:43 +08:00
parent e51d7824a7
commit 5b3448b52b
20 changed files with 662 additions and 172 deletions
+14
View File
@@ -0,0 +1,14 @@
"""关键位监控表结构迁移(四所共用)。"""
from __future__ import annotations
from typing import Any
def ensure_key_monitor_schema(conn: Any) -> None:
for sql in (
"ALTER TABLE key_monitors ADD COLUMN last_mark_price REAL",
):
try:
conn.execute(sql)
except Exception:
pass