@discomedia/utils 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13999,9 +13999,7 @@ class AlpacaMarketDataAPI extends require$$0$3.EventEmitter {
13999
13999
  const dateRangeStr = earliestTimestamp && latestTimestamp
14000
14000
  ? `${earliestTimestamp.toLocaleDateString('en-US', { timeZone: 'America/New_York' })} to ${latestTimestamp.toLocaleDateString('en-US', { timeZone: 'America/New_York' })}`
14001
14001
  : 'unknown range';
14002
- log(`Page ${pageCount}: Fetched ${pageBarsCount.toLocaleString()} bars (total: ${totalBarsCount.toLocaleString()}) for ${symbolsStr}, date range: ${dateRangeStr}${hasMorePages ? ', more pages available' : ', complete'}`, {
14003
- type: 'info',
14004
- });
14002
+ log(`Page ${pageCount}: Fetched ${pageBarsCount.toLocaleString()} bars (total: ${totalBarsCount.toLocaleString()}) for ${symbols.length} symbols, date range: ${dateRangeStr}${hasMorePages ? ', more pages available' : ', complete'}`);
14005
14003
  // Prevent infinite loops
14006
14004
  if (pageCount > 1000) {
14007
14005
  log(`Stopping pagination after ${pageCount} pages to prevent infinite loop`, { type: 'warn' });
@@ -14009,12 +14007,10 @@ class AlpacaMarketDataAPI extends require$$0$3.EventEmitter {
14009
14007
  }
14010
14008
  }
14011
14009
  // Final summary
14012
- const symbolCounts = Object.entries(allBars)
14010
+ const symbolsJoined = Object.entries(allBars)
14013
14011
  .map(([symbol, bars]) => `${symbol}: ${bars.length}`)
14014
14012
  .join(', ');
14015
- log(`Historical bars fetch complete: ${totalBarsCount.toLocaleString()} total bars across ${pageCount} pages (${symbolCounts})`, {
14016
- type: 'info',
14017
- });
14013
+ log(`Historical bars fetch complete: ${totalBarsCount.toLocaleString()} total bars across ${pageCount} pages for ${symbolsJoined.length} symbols'}`);
14018
14014
  return {
14019
14015
  bars: allBars,
14020
14016
  next_page_token: null, // Always null since we fetch all pages