Table of Contents

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

period TimeSpan

A period of market data time used to repeatedly invoke the callback.

callback Action

A 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

period TimeSpan

Subscribed period of invocations.

callback Action

A method to be unregistered.