File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1289,6 +1289,7 @@ private IEnumerable<SubscriptionDataConfig> GetMatchingSubscriptions(Symbol symb
12891289 // Inherit values from existing subscriptions or use defaults
12901290 var extendedMarketHours = userConfigIfAny ? . ExtendedMarketHours ?? UniverseSettings . ExtendedMarketHours ;
12911291 var dataNormalizationMode = userConfigIfAny ? . DataNormalizationMode ?? UniverseSettings . GetUniverseNormalizationModeOrDefault ( symbol . SecurityType ) ;
1292+ var dataMappingMode = UniverseSettings . GetUniverseMappingModeOrDefault ( symbol . SecurityType , symbol . ID . Market ) ;
12921293 var contractDepthOffset = userConfigIfAny ? . ContractDepthOffset ?? ( uint ) Math . Abs ( UniverseSettings . ContractDepthOffset ) ;
12931294
12941295 // If type was specified and not a lean data type and also not abstract, we create a new subscription
@@ -1320,7 +1321,7 @@ private IEnumerable<SubscriptionDataConfig> GetMatchingSubscriptions(Symbol symb
13201321 LeanData . GetCommonTickTypeForCommonDataTypes ( dataType , symbol . SecurityType ) ,
13211322 true ,
13221323 dataNormalizationMode ,
1323- userConfigIfAny ? . DataMappingMode ?? DataMappingMode . OpenInterest ,
1324+ dataMappingMode ,
13241325 contractDepthOffset ) } ;
13251326 }
13261327
@@ -1350,7 +1351,7 @@ private IEnumerable<SubscriptionDataConfig> GetMatchingSubscriptions(Symbol symb
13501351 x . Item2 ,
13511352 true ,
13521353 dataNormalizationMode ,
1353- userConfigIfAny ? . DataMappingMode ?? UniverseSettings . GetUniverseMappingModeOrDefault ( symbol . SecurityType , symbol . ID . Market ) ,
1354+ dataMappingMode ,
13541355 contractDepthOffset ) ;
13551356 } )
13561357 // lets make sure to respect the order of the data types, if used on a history request will affect outcome when using pushthrough for example
You can’t perform that action at this time.
0 commit comments