diff --git a/QuantConnect.Polygon/PolygonSymbolMapper.cs b/QuantConnect.Polygon/PolygonSymbolMapper.cs index 95a6a9a..21ba36a 100644 --- a/QuantConnect.Polygon/PolygonSymbolMapper.cs +++ b/QuantConnect.Polygon/PolygonSymbolMapper.cs @@ -127,8 +127,8 @@ public Symbol GetLeanSymbol(string brokerageSymbol, SecurityType securityType, s break; case SecurityType.IndexOption: - underlying ??= Symbol.Create(leanBaseSymbol?.Underlying.ID.Symbol, SecurityType.Index, market); - leanSymbol = Symbol.CreateOption(underlying, leanBaseSymbol?.ID.Symbol, market, optionStyle, optionRight, strike, expirationDate); + underlying ??= Symbol.Create(leanBaseSymbol.Underlying.ID.Symbol, SecurityType.Index, market); + leanSymbol = Symbol.CreateOption(underlying, leanBaseSymbol.ID.Symbol, market, optionStyle, optionRight, strike, expirationDate); break; case SecurityType.Equity: @@ -136,7 +136,7 @@ public Symbol GetLeanSymbol(string brokerageSymbol, SecurityType securityType, s break; case SecurityType.Index: - leanSymbol = Symbol.Create(leanBaseSymbol?.ID.Symbol, securityType, market); + leanSymbol = Symbol.Create(leanBaseSymbol.ID.Symbol, securityType, market); break; default: