Timer Functionality in Core API
Posted: Fri Feb 17, 2023 9:39 pm
In the Core API, is there any functionality similar to IntervalListener? Or do I need to roll a custom Timer inside my code?
I'm looking for some timer mechanism that makes a callback every X seconds.
The implementation in Simplified works great for my use case (IntervalListener, getInterval, onInterval). Just need some additional functionality that Core API provides.
More specifically, I'd like to get the interval to be synced up with the market data feed, not necessarily with my system's time. Perhaps more similar to the onBar functionality.
I'm looking for some timer mechanism that makes a callback every X seconds.
The implementation in Simplified works great for my use case (IntervalListener, getInterval, onInterval). Just need some additional functionality that Core API provides.
More specifically, I'd like to get the interval to be synced up with the market data feed, not necessarily with my system's time. Perhaps more similar to the onBar functionality.