How to call method beforeMarketOpen 10 mins before market open every day 

Is below correct way to implement ?

self.Schedule.On(self.DateRules.EveryDay(), self.TimeRules.AfterMarketOpen("SPY", -10) , self.BeforeMarketOpen)

Author

Dharmesh Khalasi

January 2024