diff --git a/Common/Securities/Option/OptionSymbol.cs b/Common/Securities/Option/OptionSymbol.cs index 76483d0d19c1..9d2ac51404de 100644 --- a/Common/Securities/Option/OptionSymbol.cs +++ b/Common/Securities/Option/OptionSymbol.cs @@ -28,8 +28,6 @@ public static class OptionSymbol { private static readonly Dictionary _optionExpirationErrorLog = new(); - private static readonly Dictionary _expirationDateTimes = new(); - /// /// Returns true if the option is a standard contract that expires 3rd Friday of the month /// @@ -173,11 +171,6 @@ private static bool TryGetExpirationDateTime(Symbol symbol, out DateTime expiryT exchangeHours = MarketHoursDatabase.FromDataFolder().GetExchangeHours(symbol.ID.Market, symbol, symbol.SecurityType); - if (_expirationDateTimes.TryGetValue(symbol, out expiryTime)) - { - return true; - } - // Ideally we can calculate expiry on the date of the symbol ID, but if that exchange is not open on that day we // will consider expired on the last trading day close before this; Example in AddOptionContractExpiresRegressionAlgorithm var lastTradingDay = exchangeHours.IsDateOpen(symbol.ID.Date) @@ -203,8 +196,6 @@ private static bool TryGetExpirationDateTime(Symbol symbol, out DateTime expiryT expiryTime = symbol.ID.Date.AddDays(1).Date; } - _expirationDateTimes[symbol] = expiryTime; - return true; } }