Skip to content

LiveTimeProvider

QuantConnect.Lean.Engine.DataFeeds.LiveTimeProvider

LiveTimeProvider(real_time: ITimeProvider)

Bases: Object, ITimeProvider

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

Creates a new instance

Parameters:

Name Type Description Default
real_time ITimeProvider

Real time provider

required

get_utc_now

get_utc_now() -> datetime

Gets the current time in UTC

Returns:

Type Description
datetime

The current time in UTC.

initialize

initialize(warmup_time_provider: ITimeProvider) -> None

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

Parameters:

Name Type Description Default
warmup_time_provider ITimeProvider

The warmup provider to use

required