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