@discomedia/utils 1.0.28 → 1.0.30

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.mjs CHANGED
@@ -17312,7 +17312,6 @@ class AlpacaTradingAPI {
17312
17312
  clearTimeout(authTimeout);
17313
17313
  if (message.data?.status === 'authorized') {
17314
17314
  this.authenticated = true;
17315
- this.log('WebSocket authenticated');
17316
17315
  resolve();
17317
17316
  }
17318
17317
  else {
@@ -17354,7 +17353,6 @@ class AlpacaTradingAPI {
17354
17353
  this.ws?.removeListener('message', handleListenResponse);
17355
17354
  clearTimeout(listenTimeout);
17356
17355
  if (message.data?.streams?.includes('trade_updates')) {
17357
- this.log('Subscribed to trade updates');
17358
17356
  resolve();
17359
17357
  }
17360
17358
  else {
@@ -17839,7 +17837,7 @@ class AlpacaTradingAPI {
17839
17837
  async getPortfolioDailyHistory(params) {
17840
17838
  // Get daily and hourly history in parallel
17841
17839
  const dailyParams = { ...params, timeframe: '1D' };
17842
- const hourlyParams = { timeframe: '1H', period: '1D' };
17840
+ const hourlyParams = { timeframe: '1Min', period: '1D' };
17843
17841
  const [dailyHistory, hourlyHistory] = await Promise.all([
17844
17842
  this.getPortfolioHistory(dailyParams),
17845
17843
  this.getPortfolioHistory(hourlyParams)