Skip to content

TimeConsumer

QuantConnect.Scheduling.TimeConsumer

Bases: Object

Represents a timer consumer instance

finished

finished: bool

True if the consumer already finished it's work and no longer consumes time

time_provider

time_provider: ITimeProvider

The time provider associated with this consumer

isolator_limit_provider

isolator_limit_provider: IIsolatorLimitResultProvider

The isolator limit provider to be used with this consumer

next_time_request

next_time_request: Optional[datetime]

The next time, base on the time_provider, that time should be requested to be isolator_limit_provider

name

name: str

Name of the work being executed, if any, e.g. the scheduled event's name. Used to name the long-running work in logs when additional time is requested

additional_minutes_requested

additional_minutes_requested: int

The number of additional minutes that have been requested for this consumer so far