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

Live time provide which supports an initial warmup period using the given time provider SubscriptionFrontierTimeProvider, used by the LiveSynchronizer More...

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

Public Member Functions

 LiveTimeProvider (ITimeProvider realTime)
 Creates a new instance More...
 
void Initialize (ITimeProvider warmupTimeProvider)
 Fully initializes this instance providing the initial warmup time provider to use More...
 
DateTime GetUtcNow ()
 Gets the current time in UTC More...
 

Detailed Description

Live time provide which supports an initial warmup period using the given time provider SubscriptionFrontierTimeProvider, used by the LiveSynchronizer

Definition at line 24 of file LiveTimeProvider.cs.

Constructor & Destructor Documentation

◆ LiveTimeProvider()

QuantConnect.Lean.Engine.DataFeeds.LiveTimeProvider.LiveTimeProvider ( ITimeProvider  realTime)

Creates a new instance

Parameters
realTimeReal time provider

Definition at line 35 of file LiveTimeProvider.cs.

Here is the call graph for this function:

Member Function Documentation

◆ Initialize()

void QuantConnect.Lean.Engine.DataFeeds.LiveTimeProvider.Initialize ( ITimeProvider  warmupTimeProvider)

Fully initializes this instance providing the initial warmup time provider to use

Parameters
warmupTimeProviderThe warmup provider to use

Definition at line 45 of file LiveTimeProvider.cs.

Here is the caller graph for this function:

◆ GetUtcNow()

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

Gets the current time in UTC

Returns
The current time in UTC

Implements QuantConnect.ITimeProvider.

Definition at line 54 of file LiveTimeProvider.cs.

Here is the call graph for this function:

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