Support Board
Date/Time: Wed, 07 May 2025 13:23:01 +0000
Post From: Custom data into SC
[2024-12-29 15:10:48] |
User806682 - Posts: 20 |
Thanks for the response. Currently I have about 20 users, as this is a brand new study it is likely to grow as I've just been promoting it for the last couple of weeks. The study I built currently fetches data every 3 seconds, implying that the data doesn't need to be realtime but near realtime is important. I initially tried to implement websockets in the custom study to make it a push versus a pull but was having issues with the implementation so I've punted on this until scaling becomes more of an issue. pulling from a Sierra study at some rate you want to monitor and not a chart update interval like 10 times a second might be just fine.
if so, then you'd want to spend time on your REST API for efficient pulling of all data, then a method for efficient updates with a param to the API for last item seen, resume handle, etc. parsing this data in your study and aligning to nearest/containing bar index should be efficient and you'd most certainly make use of some persistent variables for tracking state. This is more or less what I have already implemented. What I'm curious about is if SC had a different way to get realtime data into SC via a custom data feed/symbol. It sounds like this isn't the case. I'm curious if this is something SC would be interested in building? Alternatively, I could ask if SC would be interested in building a socket API that developers could use. This would greatly facilitate things for me. |