@@ -872,7 +872,8 @@ public static string GenerateZipFileName(string symbol, SecurityType securityTyp
872872
873873 if ( tickType == null )
874874 {
875- if ( securityType == SecurityType . Forex || securityType == SecurityType . Cfd ) {
875+ if ( securityType == SecurityType . Forex || securityType == SecurityType . Cfd )
876+ {
876877 tickType = TickType . Quote ;
877878 }
878879 else
@@ -1589,24 +1590,34 @@ public static bool SetStrictEndTimes(IBaseData baseData, SecurityExchangeHours e
15891590 /// <param name="fileName">File name extracted</param>
15901591 /// <param name="entryName">Entry name extracted</param>
15911592 public static void ParseKey ( string key , out string fileName , out string entryName )
1592- {
1593- // Default scenario, no entryName included in key
1594- entryName = null ; // default to all entries
1595- fileName = key ;
1596-
1597- if ( key == null )
1598- {
1599- return ;
1600- }
1601-
1602- // Try extracting an entry name; Anything after a # sign
1603- var hashIndex = key . LastIndexOf ( "#" , StringComparison . Ordinal ) ;
1604- if ( hashIndex != - 1 )
1605- {
1606- entryName = key . Substring ( hashIndex + 1 ) ;
1607- fileName = key . Substring ( 0 , hashIndex ) ;
1608- }
1609- }
1593+ {
1594+ // Default scenario, no entryName included in key
1595+ entryName = null ; // default to all entries
1596+ fileName = key ;
1597+
1598+ if ( key == null )
1599+ {
1600+ return ;
1601+ }
1602+
1603+ // Try extracting an entry name; Anything after a # sign
1604+ var hashIndex = key . LastIndexOf ( "#" , StringComparison . Ordinal ) ;
1605+ if ( hashIndex != - 1 )
1606+ {
1607+ entryName = key . Substring ( hashIndex + 1 ) ;
1608+ fileName = key . Substring ( 0 , hashIndex ) ;
1609+ }
1610+ }
1611+
1612+ /// <summary>
1613+ /// Helper method to determine if the specified data type supports extended market hours
1614+ /// </summary>
1615+ /// <param name="dataType">The data type</param>
1616+ /// <returns>Whether the specified data type supports extended market hours</returns>
1617+ public static bool SupportsExtendedMarketHours ( Type dataType )
1618+ {
1619+ return ! dataType . IsAssignableTo ( typeof ( BaseChainUniverseData ) ) ;
1620+ }
16101621
16111622 /// <summary>
16121623 /// Helper method to aggregate ticks or bars into lower frequency resolutions
0 commit comments