mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-12 11:50:11 +08:00
ENH: _UnionRestrictions for combining multiple Restrictions
This commit is contained in:
@@ -2215,7 +2215,7 @@ class TradingAlgorithm(object):
|
||||
"""
|
||||
control = RestrictedListOrder(on_error, restrictions)
|
||||
self.register_trading_control(control)
|
||||
self.restrictions = restrictions
|
||||
self.restrictions |= restrictions
|
||||
|
||||
@api_method
|
||||
def set_long_only(self, on_error='fail'):
|
||||
|
||||
Reference in New Issue
Block a user