Skip to content

Expiry

QuantConnect.Expiry

Bases: Object

Provides static functions that can be used to compute a future DateTime (expiry) given a DateTime.

ONE_MONTH

ONE_MONTH: Callable[[datetime], datetime]

Computes a date/time one month after a given date/time (nth day to nth day)

ONE_QUARTER

ONE_QUARTER: Callable[[datetime], datetime]

Computes a date/time one quarter after a given date/time (nth day to nth day)

ONE_YEAR

ONE_YEAR: Callable[[datetime], datetime]

Computes a date/time one year after a given date/time (nth day to nth day)

END_OF_DAY

END_OF_DAY: Callable[[datetime], datetime]

Computes the end of day (mid-night of the next day) of given date/time

END_OF_WEEK

END_OF_WEEK: Callable[[datetime], datetime]

Computes the end of week (next Monday) of given date/time

END_OF_MONTH

END_OF_MONTH: Callable[[datetime], datetime]

Computes the end of month (1st of the next month) of given date/time

END_OF_QUARTER

END_OF_QUARTER: Callable[[datetime], datetime]

Computes the end of quarter (1st of the starting month of next quarter) of given date/time

END_OF_YEAR

END_OF_YEAR: Callable[[datetime], datetime]

Computes the end of year (1st of the next year) of given date/time