self.find_first_friday¶
- lumibot.strategies.strategy.Strategy.find_first_friday(self, timestamp: datetime | Timestamp)
Finds the first Friday of the month for a given timestamp.
- Parameters:
timestamp (datetime.datetime | pd.Timestamp) – The timestamp for which the first Friday of the month is needed.
- Returns:
The first Friday of the month.
- Return type:
datetime.datetime