Exchange.Hours.GetNextMarketClose(Time, true) gets me:
5/2/2024 5:00:00 PM
Exchange.Hours.GetMarketHours(Time) gives me:
Wednesday: PreMarket: 00:00:00-09:30:00 | Market: 09:30:00-17:00:00 | PostMarket: 18:00:00-1.00:00:00
GetNextMarketClose is not in military time while GetMarketHours is in military time.
5:00:00 PM vs 17:00:00 is the problem. I have to parse GetMarketHours to get 17:00:00 or presume to add 12 to 5:00:00 PM to get 17:00:00.
GetNextMarketClose should've been military time.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!