I need to be able to to re-balace no later than the 15th day of each month. The Q schedule function only allows the offset in the rules. Anyone knows how to know if the day 15 it is on the weekend and then rebalance on the previous trading day?
schedule_function(rebalance,
date_rule=date_rules.month_start(days_offset=10),
# date_rule=date_rules.month_end(days_offset=0),
# date_rule=date_rules.every_day(),
time_rule=time_rules.market_close())
EG