Skip to content

BaseScheduleRules

QuantConnect.Scheduling.BaseScheduleRules

BaseScheduleRules(
    algorithm: IAlgorithm,
    securities: SecurityManager,
    time_zone: Any,
    market_hours_database: MarketHoursDatabase,
)

Bases: Object

Base rule scheduler

Initializes a new instance of the TimeRules helper class

Parameters:

Name Type Description Default
algorithm IAlgorithm

The algorithm instance

required
securities SecurityManager

The security manager

required
time_zone Any

The algorithm's default time zone

required
market_hours_database MarketHoursDatabase

The market hours database instance to use

required

time_zone

time_zone: Any

The algorithm's default time zone

This codeEntityType is protected.

securities

securities: SecurityManager

The security manager

This codeEntityType is protected.

market_hours_database

market_hours_database: MarketHoursDatabase

The market hours database instance to use

This codeEntityType is protected.

get_security_exchange_hours

get_security_exchange_hours(
    symbol: Union[Symbol, str, BaseContract],
) -> SecurityExchangeHours

Helper method to fetch the security exchange hours

This codeEntityType is protected.

get_symbol

get_symbol(ticker: str) -> Symbol

This codeEntityType is protected.