An alternative to reqRealTimeBars
or reqHistoricalData + keepUpToDate
#116
gnzsnz
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Thanks for this snippet gonzo, I like the way you have set this up using Tickers objects. Would this require your whole codebase to use async methods?? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This code snipet shows a handy alternative to to
reqRealTimeBars
andreqHistoricalData + keepUpToDate
. It leverageseventkit
and theTicker
class to generate databarsOutput
This example generates bars every 1 minutes (60 seconds), which simplifies a quick demo, feel free to use a time frame that suits your trading.
Beta Was this translation helpful? Give feedback.
All reactions