mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-01 12:01:05 +08:00
ENH: _UnionRestrictions for combining multiple Restrictions
This commit is contained in:
1 parent
3b5031a829
commit
2104a35af8
5 files changed
+233
-2
No files matched your search
@@ -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