openseries.get_previous_business_day_before_today
- openseries.get_previous_business_day_before_today(today=None, countries='SE', markets=None, custom_holidays=None)[source]
Bump date backwards to find the previous business day.
- Parameters:
today (dt.date | None) – Manual input of the day from where the previous business day is found.
countries (CountriesType) – (List of) country code(s) according to ISO 3166-1 alpha-2. Defaults to “SE”.
markets (list[str] | str | None) – (List of) markets code(s) supported by exchange_calendars.
custom_holidays (list[str] | str | None) – Argument where missing holidays can be added.
- Returns:
The previous business day.
- Return type:
dt.date