@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-frontend.mjs
CHANGED
|
@@ -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: '
|
|
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)
|