bayesline.api.equity.CalendarApi

bayesline.api.equity.CalendarApi#

class bayesline.api.equity.CalendarApi#

Bases: ABC

Methods

__init__()

get(*[, start, end])

Parameters start: DateLike, optional The start date of the data to return, inclusive. end: DateLike, optional The end date of the data to return, inclusive.

Attributes

settings

Returns The settings used to create this calendar.

abstract property settings: CalendarSettings#

Returns#

The settings used to create this calendar.

abstract get(*, start: str | date | datetime | None = None, end: str | date | datetime | None = None) list[date]#

Parameters#

start: DateLike, optional

The start date of the data to return, inclusive.

end: DateLike, optional

The end date of the data to return, inclusive.

Returns#

list[dt.date]

A list of all trade dates this calendar covers, between the start and end dates, inclusive, if these are provided.