Skip to content

Commit

Permalink
Address minor peer review
Browse files Browse the repository at this point in the history
  • Loading branch information
jhonabreul committed Jan 8, 2024
1 parent ff3a373 commit dfb43a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QuantConnect.Polygon/PolygonSymbolMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ 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:
leanSymbol = Symbol.Create(brokerageSymbol, securityType, market);
break;

case SecurityType.Index:
leanSymbol = Symbol.Create(leanBaseSymbol?.ID.Symbol, securityType, market);
leanSymbol = Symbol.Create(leanBaseSymbol.ID.Symbol, securityType, market);
break;

default:
Expand Down

0 comments on commit dfb43a2

Please sign in to comment.