In utils.infer_trading_calendar function, the variable days_of_the_week seems incorrect?
days_of_the_week = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
if 'Sat' and 'Sun' are included, then the weekend will be list in the trade days。
Please provide a minimal, self-contained, and reproducible example:
Thanks for reporting this @wuyunhua but the function is working as expected: it infers the calendars based on the dates you passed. Since the dates contain the weekends, then the inferred calendar has weekends too
Problem Description
In utils.infer_trading_calendar function, the variable days_of_the_week seems incorrect? days_of_the_week = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'] if 'Sat' and 'Sun' are included, then the weekend will be list in the trade days。
Please provide a minimal, self-contained, and reproducible example:
Versions