Open darkknight9394 opened 4 years ago
This is a problem with even version store as well. The script is behaving weirdly. For me, it doesn't happen regularly. But, I'm able to see the behaviour 3 times out of 5.
My initial finding was that there could be a potential issue with MongoDB. And I've worked on different cluster setup and standalone db. Upgraded MongoDB to the latest version recently. But the problem is still the same.
Multiple ticker updating data get with live stream get hanged which result in no data at runtime.
@bmoscon @jamesblackburn @shashank88 Any idea about this problem ?? Or are we missing something to make it work with multiple tickers storing real-time data.
Arctic Version
1.79.3
Arctic Store
TickStore
Platform and version
Windows 10 PyCharm
Description of problem and/or code sample that reproduces the issue
What i'm working on is to stream real-time minute bar data into arctic database for 500 symbols using tickstore. (The reason why I choose tick store is because I read about it's real-time capabilities.) The question I have is that I want to check for the database updates continuously so that the trading algorithm can act upon the latest bar.
Currently, I am using a very ad-hoc way of looking for the updates below (query_single_ticker.py). The intention is to keep reading the database and only print if the last row's datetime minute index is not the same as the one previously recorded. While this works fine for single ticker, running it for 20+ symbols seem to kill the performance (using a bash script). I am seeking your suggestion how could one read real-time data whenever there's an update.
Here's a code snippet of how the data gets stored to arctic. Note here the write to arctic is called once per minute whenever the minute bar is ready.