Skip to content

CalendarInfo

QuantConnect.Data.Consolidators.CalendarInfo

CalendarInfo(
    start: Union[datetime, date], period: timedelta
)

Calendar Info for storing information related to the start and period of a consolidator

Constructor for CalendarInfo; used for consolidation calendar

Parameters:

Name Type Description Default
start Union[datetime, date]

Calendar Start

required
period timedelta

Consolidation Period

required

start

start: datetime

Calendar Start

period

period: timedelta

Consolidation Period

end

end: datetime

Calendar End

__eq__

__eq__(right: CalendarInfo) -> bool

Indicates whether the given object is equal to this object, this is, the Calendar start and consolidation period is the same for both

__ne__

__ne__(right: CalendarInfo) -> bool

Indicates whether the given object is equal to this object, this is, the Calendar start and consolidation period is the same for both

equals

equals(obj: Any) -> bool

Indicates whether the given object is equal to this object, this is, the Calendar start and consolidation period is the same for both

get_hash_code

get_hash_code() -> int

Returns the hash code for this object as an integer

to_string

to_string() -> str

Returns a string containing the Calendar start and the consolidation period