@@ -2018,7 +2018,10 @@ public Security AddSecurity(Symbol symbol, Resolution? resolution = null, bool f
20182018 continuousContractSymbol . ID . SecurityType ,
20192019 security . Exchange . Hours ) ;
20202020 AddUniverse ( new ContinuousContractUniverse ( security , continuousUniverseSettings , LiveMode ,
2021- new SubscriptionDataConfig ( canonicalConfig , symbol : continuousContractSymbol , extendedHours : extendedMarketHours ) ) ) ;
2021+ new SubscriptionDataConfig ( canonicalConfig , symbol : continuousContractSymbol ,
2022+ // We can use any data type here, since we are not going to use the data.
2023+ // We just don't want to use the OptionUniverse type because it will force disable extended market hours
2024+ objectType : typeof ( Tick ) , extendedHours : extendedMarketHours ) ) ) ;
20222025
20232026 universe = new FuturesChainUniverse ( ( Future ) security , settings ) ;
20242027 }
@@ -2373,7 +2376,10 @@ public Option AddOptionContract(Symbol symbol, Resolution? resolution = null, bo
23732376 Resolution = underlyingConfigs . GetHighestResolution ( ) ,
23742377 ExtendedMarketHours = extendedMarketHours
23752378 } ;
2376- universe = AddUniverse ( new OptionContractUniverse ( new SubscriptionDataConfig ( configs . First ( ) , symbol : universeSymbol , extendedHours : extendedMarketHours ) , settings ) ) ;
2379+ universe = AddUniverse ( new OptionContractUniverse ( new SubscriptionDataConfig ( configs . First ( ) ,
2380+ // We can use any data type here, since we are not going to use the data.
2381+ // We just don't want to use the OptionUniverse type because it will force disable extended market hours
2382+ symbol : universeSymbol , objectType : typeof ( Tick ) , extendedHours : extendedMarketHours ) , settings ) ) ;
23772383 }
23782384
23792385 // update the universe
0 commit comments