18 using System.Collections.Generic;
36 : base(dataCacheProvider)
38 _mapFileProvider = mapFileProvider;
56 canonicalSymbol = GetCanonical(symbol, date);
60 throw new NotSupportedException($
"BacktestingOptionChainProvider.GetOptionContractList(): " +
61 $
"{nameof(SecurityType.Equity)}, {nameof(SecurityType.Future)}, or {nameof(SecurityType.Index)} is expected but was {symbol.SecurityType}");
67 var mappedUnderlyingSymbol = MapUnderlyingSymbol(symbol, date);
74 private Symbol GetCanonical(
Symbol optionSymbol, DateTime date)
80 var mappedUnderlyingSymbol = MapUnderlyingSymbol(optionSymbol.
Underlying, date);
90 private Symbol MapUnderlyingSymbol(
Symbol underlying, DateTime date)
92 if (underlying.RequiresMapping())