@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/{alpaca-trading-api-BMvFXbgI.js → alpaca-trading-api-CPaXTnjf.js} +2 -4
- package/dist/alpaca-trading-api-CPaXTnjf.js.map +1 -0
- package/dist/index-frontend.cjs +1 -3
- package/dist/index-frontend.cjs.map +1 -1
- package/dist/index-frontend.mjs +1 -3
- package/dist/index-frontend.mjs.map +1 -1
- package/dist/index.cjs +1 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/test.js +1 -1
- package/dist/types/alpaca-trading-api.d.ts.map +1 -1
- package/dist/types-frontend/alpaca-trading-api.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/alpaca-trading-api-BMvFXbgI.js.map +0 -1
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: '
|
|
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)
|