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

The composite time provider will source it's current time using the smallest time from the given providers More...

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

Public Member Functions

 CompositeTimeProvider (IEnumerable< ITimeProvider > timeProviders)
 Creates a new instance More...
 
DateTime GetUtcNow ()
 Gets the current time in UTC More...
 

Detailed Description

The composite time provider will source it's current time using the smallest time from the given providers

Definition at line 25 of file CompositeTimeProvider.cs.

Constructor & Destructor Documentation

◆ CompositeTimeProvider()

QuantConnect.Lean.Engine.DataFeeds.CompositeTimeProvider.CompositeTimeProvider ( IEnumerable< ITimeProvider timeProviders)

Creates a new instance

Parameters
timeProvidersThe time providers to use. Will default to the real time provider if empty

Definition at line 33 of file CompositeTimeProvider.cs.

Member Function Documentation

◆ GetUtcNow()

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

Gets the current time in UTC

Returns
The current time in UTC

Implements QuantConnect.ITimeProvider.

Definition at line 42 of file CompositeTimeProvider.cs.


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