self.get_next_trading_day¶
- lumibot.strategies.strategy.Strategy.get_next_trading_day(self, date: str, 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:
next_trading_day (datetime.date)
- Return type:
The next trading day after the given date.