Skip to content

Commit

Permalink
Use the US stock exchange calendar to populate trading days instead o…
Browse files Browse the repository at this point in the history
…f the generic settlement calendar.

Fixes QuantConnect#8592.
  • Loading branch information
fumoboy007 authored Feb 18, 2025
1 parent 5596295 commit b11be97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/TradingCalendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private IEnumerable<TradingDay> PopulateTradingDays(DateTime start, DateTime end
}
}

var qlCalendar = new UnitedStates();
var qlCalendar = new UnitedStates(Market.NYSE);
var options = symbols.Where(x => x.ID.SecurityType.IsOption()).ToList();
var futures = symbols.Where(x => x.ID.SecurityType == SecurityType.Future).ToList();

Expand Down

0 comments on commit b11be97

Please sign in to comment.