Lean  $LEAN_TAG$
QuantConnect.Lean.Engine.DataFeeds.SubscriptionFrontierTimeProvider Class Reference

A time provider which updates 'now' time based on the current data emit time of all subscriptions More...

Inheritance diagram for QuantConnect.Lean.Engine.DataFeeds.SubscriptionFrontierTimeProvider:
[legend]

Public Member Functions

 SubscriptionFrontierTimeProvider (DateTime utcNow, IDataFeedSubscriptionManager subscriptionManager)
 Creates a new instance of the SubscriptionFrontierTimeProvider More...
 
DateTime GetUtcNow ()
 Gets the current time in UTC More...
 

Detailed Description

A time provider which updates 'now' time based on the current data emit time of all subscriptions

This class is not thread safe but there is no need for it to be since it's only consumed by the SubscriptionSynchronizer

Definition at line 26 of file SubscriptionFrontierTimeProvider.cs.

Constructor & Destructor Documentation

◆ SubscriptionFrontierTimeProvider()

QuantConnect.Lean.Engine.DataFeeds.SubscriptionFrontierTimeProvider.SubscriptionFrontierTimeProvider ( DateTime  utcNow,
IDataFeedSubscriptionManager  subscriptionManager 
)

Creates a new instance of the SubscriptionFrontierTimeProvider

Parameters
utcNowInitial UTC now time
subscriptionManagerSubscription manager. Will be used to obtain current subscriptions

Definition at line 37 of file SubscriptionFrontierTimeProvider.cs.

Member Function Documentation

◆ GetUtcNow()

DateTime QuantConnect.Lean.Engine.DataFeeds.SubscriptionFrontierTimeProvider.GetUtcNow ( )

Gets the current time in UTC

Returns
The current time in UTC

Implements QuantConnect.ITimeProvider.

Definition at line 47 of file SubscriptionFrontierTimeProvider.cs.


The documentation for this class was generated from the following file: