@@ -1095,29 +1095,29 @@ private IEnumerable<SubscriptionDataConfig> GetMatchingSubscriptions(Symbol symb
10951095 return configs . Where ( s => s . TickType != TickType . Quote ) ;
10961096 }
10971097
1098- type = typeof ( QuoteBar ) ;
1099- var entry = MarketHoursDatabase . GetEntry ( symbol , new [ ] { type } ) ;
1100-
1101- // Create a new SubscriptionDataConfig
1102- var newConfig = new SubscriptionDataConfig (
1103- type ,
1104- symbol ,
1105- resolution . Value ,
1106- entry . DataTimeZone ,
1107- entry . ExchangeHours . TimeZone ,
1108- UniverseSettings . FillForward ,
1109- UniverseSettings . ExtendedMarketHours ,
1110- false ) ;
11111098
11121099 // If no existing configuration for the Quote tick type, add the new config
1113- if ( ! configs . Any ( config => config . TickType == TickType . Quote ) )
1100+ if ( ! configs . Any ( config => config . TickType == TickType . Quote ) && type == null )
11141101 {
1115- configs . Add ( newConfig ) ;
1116- }
1102+ type = LeanData . GetDataType ( resolution . Value , TickType . Quote ) ;
1103+ var entry = MarketHoursDatabase . GetEntry ( symbol , new [ ] { type } ) ;
1104+
1105+ // Create a new SubscriptionDataConfig
1106+ var newConfig = new SubscriptionDataConfig (
1107+ type ,
1108+ symbol ,
1109+ resolution . Value ,
1110+ entry . DataTimeZone ,
1111+ entry . ExchangeHours . TimeZone ,
1112+ UniverseSettings . FillForward ,
1113+ UniverseSettings . ExtendedMarketHours ,
1114+ false , tickType : TickType . Quote ) ;
11171115
1118- // Sort the configs in descending order based on tick type
1119- configs = configs . OrderByDescending ( config => GetTickTypeOrder ( config . SecurityType , config . TickType ) ) . ToList ( ) ;
1116+ configs . Add ( newConfig ) ;
11201117
1118+ // Sort the configs in descending order based on tick type
1119+ configs = configs . OrderByDescending ( config => GetTickTypeOrder ( config . SecurityType , config . TickType ) ) . ToList ( ) ;
1120+ }
11211121 }
11221122
11231123 if ( symbol . IsCanonical ( ) && configs . Count > 1 )
0 commit comments