mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-02 06:45:49 +08:00
DOC: Update docstring for set_restrictions.
This commit is contained in:
committed by
Andrew Liang
parent
523b05ef3f
commit
cfce14ed9b
@@ -2206,8 +2206,12 @@ class TradingAlgorithm(object):
|
||||
|
||||
Parameters
|
||||
----------
|
||||
restricted_list : container[Asset], SecurityList, Restrictions
|
||||
The assets that cannot be ordered.
|
||||
restricted_list : Restrictions
|
||||
An object providing information about restricted assets.
|
||||
|
||||
See Also
|
||||
--------
|
||||
zipline.finance.restrictions.Restrictions
|
||||
"""
|
||||
control = RestrictedListOrder(on_error, restrictions)
|
||||
self.register_trading_control(control)
|
||||
|
||||
Reference in New Issue
Block a user