bayesline.api.equity.AsyncCalendarApi#

class bayesline.api.equity.AsyncCalendarApi#

Abstract base class for async calendar API operations.

__init__()#

Methods

__init__()

get(*[, start, end])

Get trade dates for the specified date range.

Attributes

settings

Get the settings used to create this calendar.

abstract property settings: CalendarSettings#

Get the settings used to create this calendar.

Returns#

CalendarSettings

The settings used to create this calendar.

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

Get trade dates for the specified date range.

Parameters#

startDateLike | None, default=None

The start date of the data to return, inclusive.

endDateLike | None, default=None

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.