@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.
package/dist/index.cjs CHANGED
@@ -16311,9 +16311,7 @@ class AlpacaMarketDataAPI extends require$$0$3.EventEmitter {
16311
16311
  const dateRangeStr = earliestTimestamp && latestTimestamp
16312
16312
  ? `${earliestTimestamp.toLocaleDateString('en-US', { timeZone: 'America/New_York' })} to ${latestTimestamp.toLocaleDateString('en-US', { timeZone: 'America/New_York' })}`
16313
16313
  : 'unknown range';
16314
- log(`Page ${pageCount}: Fetched ${pageBarsCount.toLocaleString()} bars (total: ${totalBarsCount.toLocaleString()}) for ${symbolsStr}, date range: ${dateRangeStr}${hasMorePages ? ', more pages available' : ', complete'}`, {
16315
- type: 'info',
16316
- });
16314
+ log(`Page ${pageCount}: Fetched ${pageBarsCount.toLocaleString()} bars (total: ${totalBarsCount.toLocaleString()}) for ${symbols.length} symbols, date range: ${dateRangeStr}${hasMorePages ? ', more pages available' : ', complete'}`);
16317
16315
  // Prevent infinite loops
16318
16316
  if (pageCount > 1000) {
16319
16317
  log(`Stopping pagination after ${pageCount} pages to prevent infinite loop`, { type: 'warn' });
@@ -16321,12 +16319,10 @@ class AlpacaMarketDataAPI extends require$$0$3.EventEmitter {
16321
16319
  }
16322
16320
  }
16323
16321
  // Final summary
16324
- const symbolCounts = Object.entries(allBars)
16322
+ const symbolsJoined = Object.entries(allBars)
16325
16323
  .map(([symbol, bars]) => `${symbol}: ${bars.length}`)
16326
16324
  .join(', ');
16327
- log(`Historical bars fetch complete: ${totalBarsCount.toLocaleString()} total bars across ${pageCount} pages (${symbolCounts})`, {
16328
- type: 'info',
16329
- });
16325
+ log(`Historical bars fetch complete: ${totalBarsCount.toLocaleString()} total bars across ${pageCount} pages for ${symbolsJoined.length} symbols'}`);
16330
16326
  return {
16331
16327
  bars: allBars,
16332
16328
  next_page_token: null, // Always null since we fetch all pages