bayesline.api.equity.AsyncCalendarApi#
- class bayesline.api.equity.AsyncCalendarApi#
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
Returns The settings used to create this calendar.
- abstract property settings: CalendarSettings#
Returns#
The settings used to create this calendar.
- abstract async 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.