I'm working on a strategy that needs to get the next trading day. There is a method to get the next trading day using TradingCalendar in C# which I found here: 

https://www.quantconnect.com/forum/discussion/1958/get-next-trading-day/p1

I'm trying to replicate the code in python with:

self.TradingCalendar.GetDaysByType(TradingDayType.BusinessDay, self.Time.date(), self.Time.date() + datetime.timedelta(days=5))

When I log the result, I get System.Linq.Enumerable+WhereEnumerableIterator`1[QuantConnect.TradingDay] as the value. Does anyone have any ideas about how to work with this in python?

 

Author