Exclude trend and roll monitors from position-limit freeze count.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 02:04:09 +08:00
parent 322060de31
commit 9d1986d771
9 changed files with 140 additions and 6 deletions
+1
View File
@@ -499,6 +499,7 @@ class AccountRiskLibTests(unittest.TestCase):
self.assertEqual(st["status_label"], "仓位上限冻结")
self.assertFalse(st["can_trade"])
self.assertIn("2/2", st["reason"])
self.assertIn("不含趋势回调", st["reason"])
self.assertEqual(st["max_active_positions"], 2)
def test_position_limit_normal_when_under_cap(self):