18 using System.Collections.Generic;
43 canonicalSymbol = GetCanonical(symbol, date);
47 throw new NotSupportedException($
"BacktestingOptionChainProvider.GetOptionContractList(): " +
48 $
"{nameof(SecurityType.Equity)}, {nameof(SecurityType.Future)}, or {nameof(SecurityType.Index)} is expected but was {symbol.SecurityType}");
54 var mappedUnderlyingSymbol = MapUnderlyingSymbol(symbol, date);
61 private Symbol GetCanonical(
Symbol optionSymbol, DateTime date)
67 var mappedUnderlyingSymbol = MapUnderlyingSymbol(optionSymbol.
Underlying, date);
77 private Symbol MapUnderlyingSymbol(
Symbol underlying, DateTime date)
79 if (underlying.RequiresMapping())