Replies: 2 comments 1 reply
-
You can build a PushPullInputAdapter that replays data from csv and then, once the data is exhausted, switches to a websocket source. You can do this purely from Python - unfortunately, I don't see an easy way to programatically extend the existing websocket push adapter or the csv pull adapter to get this behaviour, so you'd need to likely duplicate the code for your purposes. |
Beta Was this translation helpful? Give feedback.
-
I dont see any easy way to share the adapter code to accomplish this. The more sane approach to this is to write a node that merges the two streams. Ideally you would have some sort of sequence # that allows you to stitch them properly |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If historical data is saved as csv files and live feed is from websocket, can we build a PushPullInputAdapter utilizing existing CSVReader? Right now, I can think of 2 solutions:
Both solutions loses some flexibility of existing tools. Is there any way for me to just combine CSVReader with a live websocket reader to form a new PushPullInputAdapter?
Beta Was this translation helpful? Give feedback.
All reactions