Exclude trend and roll monitors from position-limit freeze count.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user