Allow roll add-ons while position-limit freeze is active.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 02:08:44 +08:00
parent 9d1986d771
commit 6ffae02d30
11 changed files with 91 additions and 70 deletions
+1
View File
@@ -130,6 +130,7 @@ def _count_active_trends(conn, cfg: dict) -> int:
def _roll_preview_response(cfg: dict, data: dict, json_mode: bool = False) -> dict:
"""顺势加仓不占用 MAX_ACTIVE_POSITIONS 新仓名额,故不校验仓位上限冻结。"""
m = cfg.get("app_module")
if m is not None:
try: