How to use PullInputAdapter like Realtime mode #589
-
|
Thank you for open-sourcing this excellent package. I have a question regarding the use of PullInputAdapter for real-time data input. In our case, we need to feed tick data into the system via PullInputAdapter. However, we’ve observed that whenever we input a tick, the graph only processes and outputs the previous tick, instead of the one just submitted. How can we configure or use PullInputAdapter so that each tick is processed and produces output immediately, without having to wait for the next tick? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
First question to ask would be, why are you writing a pull adapter for realtime data? |
Beta Was this translation helpful? Give feedback.
What you want to use is
PushPullInputAdapterwhich "pulls" the data until realtime kicks in, and then "pushes" the data after.We have an example use of it in this notebook: https://github.com/Point72/csp/blob/8c19928d57fb224795e45c5df10e3f80d97bc3a7/examples/07_end_to_end/earthquake.ipynb