create_calendar#

rateslib.calendars.create_calendar(rules, week_mask=NoInput.blank)#

Create a calendar with specific business and holiday days defined.

Warning

This function is deprecated. Create a Cal object instead.

Parameters:
  • rules (list[datetime]) – A list of specific holiday dates.

  • week_mask (list[int], optional) – Set of days excluded from the working week. [5,6] is Saturday and Sunday.

Return type:

Cal