mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-28 22:02:05 +08:00
fixed documentation on event callback method.
This commit is contained in:
@@ -39,7 +39,9 @@ class TradeSimulationClient(qmsg.Component):
|
||||
def add_event_callback(self, callback):
|
||||
"""
|
||||
:param callable callback: must be a function with the signature
|
||||
f(frame).
|
||||
f(event), where event is a namedict whose properties depend on the
|
||||
upstream configuration of the zipline. It will include datasource and
|
||||
transformations.
|
||||
"""
|
||||
self.event_callbacks.append(callback)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user