19 using System.Collections.Generic;
49 uint contractOffset = 0,
51 DateTime? endDateTime =
null
54 if (factorFile ==
null)
63 var endDateTimeFactor = 1m;
66 if (endDateTime ==
null)
68 throw new ArgumentException(
69 $
"{nameof(DataNormalizationMode.ScaledRaw)} normalization mode requires an end date for price scaling.");
73 endDateTimeFactor = factorFile.
GetPriceFactor(endDateTime.Value, normalizationMode, dataMappingMode, contractOffset);
76 return factorFile.
GetPriceFactor(dateTime, normalizationMode, dataMappingMode, contractOffset) / endDateTimeFactor;
107 DateTime? minimumDate;
109 contents = contents.Distinct();