mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-15 12:15:22 +08:00
ENH: Add a classmethod to TradingAlgorithm to get all API methods.
This commit is contained in:
@@ -61,5 +61,5 @@ def api_method(f):
|
||||
# Add functor to zipline.api
|
||||
setattr(zipline.api, f.__name__, wrapped)
|
||||
zipline.api.__all__.append(f.__name__)
|
||||
|
||||
f.is_api_method = True
|
||||
return f
|
||||
|
||||
Reference in New Issue
Block a user