Interface IHeatmapTimerConsumer
- Namespace
- ATAS.Indicators.Heatmap
- Assembly
- ATAS.Indicators.dll
Optional capability: receive periodic timer ticks. Most indicators do not need this; only opt in if the indicator must do work on a wall clock rather than in response to incoming data — for example, to expire stale state at session boundaries when no trade tick has arrived to wake the indicator up.
Added in ATAS 8.0.15.
public interface IHeatmapTimerConsumer
- Extension Methods
Methods
ProcessTimerAsync(HeatmapIndicatorTimerTick, CancellationToken)
Handles one timer tick. The platform raises ticks from its periodic UI timer, except while the live heatmap is stopped, and calls this method on the instance's own task, serialised with the other callbacks.
ValueTask ProcessTimerAsync(HeatmapIndicatorTimerTick tick, CancellationToken cancellationToken)
Parameters
tickHeatmapIndicatorTimerTickThe tick; TimestampNanos is the UTC wall-clock time when the tick was raised, in nanoseconds since the Unix epoch.
cancellationTokenCancellationTokenCancelled when the per-call timeout expires or the instance is shut down.
Returns
- ValueTask
A task that completes when the tick has been handled.