@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.
@@ -14880,7 +14880,6 @@ class AlpacaTradingAPI {
14880
14880
  clearTimeout(authTimeout);
14881
14881
  if (message.data?.status === 'authorized') {
14882
14882
  this.authenticated = true;
14883
- this.log('WebSocket authenticated');
14884
14883
  resolve();
14885
14884
  }
14886
14885
  else {
@@ -14922,7 +14921,6 @@ class AlpacaTradingAPI {
14922
14921
  this.ws?.removeListener('message', handleListenResponse);
14923
14922
  clearTimeout(listenTimeout);
14924
14923
  if (message.data?.streams?.includes('trade_updates')) {
14925
- this.log('Subscribed to trade updates');
14926
14924
  resolve();
14927
14925
  }
14928
14926
  else {
@@ -15407,7 +15405,7 @@ class AlpacaTradingAPI {
15407
15405
  async getPortfolioDailyHistory(params) {
15408
15406
  // Get daily and hourly history in parallel
15409
15407
  const dailyParams = { ...params, timeframe: '1D' };
15410
- const hourlyParams = { timeframe: '1H', period: '1D' };
15408
+ const hourlyParams = { timeframe: '1Min', period: '1D' };
15411
15409
  const [dailyHistory, hourlyHistory] = await Promise.all([
15412
15410
  this.getPortfolioHistory(dailyParams),
15413
15411
  this.getPortfolioHistory(hourlyParams)