mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-12 12:12:04 +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):
|
def add_event_callback(self, callback):
|
||||||
"""
|
"""
|
||||||
:param callable callback: must be a function with the signature
|
: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)
|
self.event_callbacks.append(callback)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user