self.get_next_trading_day#

strategies.strategy.Strategy.get_next_trading_day(self, date, exchange='NYSE')#

Finds the next trading day for the given date and exchange.

Parameters:
  • date (str) – The date from which to find the next trading day, in ‘YYYY-MM-DD’ format.

  • exchange (str) – The exchange calendar to use, default is ‘NYSE’.

Returns:

The next trading day after the given date.

Return type:

next_trading_day (datetime.date)