Interface IMarketTimeProvider
- Namespace
- ATAS.Indicators
- Assembly
- ATAS.Indicators.dll
Provides the current market and UTC time and timers driven by market data time.
public interface IMarketTimeProvider
- Extension Methods
Properties
MarketTime
Current market time.
DateTime MarketTime { get; }
Property Value
- DateTime
UtcTime
Current UTC time.
DateTime UtcTime { get; }
Property Value
- DateTime
Methods
SubscribeToTimer(TimeSpan, Action)
Registers the callback and periodically calls it with specified period.
void SubscribeToTimer(TimeSpan period, Action callback)
Parameters
periodTimeSpanA period of market data time used to repeatedly invoke the callback.
callbackActionA method that is called each time a specified period of market data time passes.
UnsubscribeFromTimer(TimeSpan, Action)
Unregister the callback from periodic invocations.
void UnsubscribeFromTimer(TimeSpan period, Action callback)
Parameters
periodTimeSpanSubscribed period of invocations.
callbackActionA method to be unregistered.