public static async Task <HistoricalDataCacheFile> GetCacheFile(MarketSeriesBase marketSeries, DateTime chunkDate)
        {
            HistoricalDataCacheFile cacheFile = cache.GetOrAdd(
                GetKey(marketSeries.Feed.Template.BrokerName, marketSeries.SymbolCode, marketSeries.TimeFrame, chunkDate),
                _ => new HistoricalDataCacheFile(marketSeries, chunkDate)
                );

            await cacheFile.EnsureLoaded().ConfigureAwait(false);

            return(cacheFile);
        }
        public static async Task SaveCacheFile(DataLoadResult result)
        {
            var cacheFile = new HistoricalDataCacheFile(result.MarketSeriesBase, result.StartDate, result.EndDate, result.QueryDate)
            {
                Bars  = result.Bars,
                Ticks = result.Ticks,
            };

            cache.AddOrUpdate(cacheFile.Key, cacheFile, (k, f) => cacheFile);

            await cacheFile.Save().ConfigureAwait(false);
        }