hedgequantx 2.7.56 → 2.7.58
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/package.json +1 -1
- package/src/app.js +2 -3
- package/src/menus/dashboard.js +6 -0
- package/src/pages/stats/index.js +4 -2
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -175,9 +175,8 @@ const run = async () => {
|
|
|
175
175
|
await refreshStats();
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
//
|
|
179
|
-
|
|
180
|
-
spinner.stop();
|
|
178
|
+
// Store spinner globally so dashboardMenu can stop it before clear
|
|
179
|
+
global.__hqxSpinner = spinner;
|
|
181
180
|
|
|
182
181
|
// Main loop
|
|
183
182
|
while (true) {
|
package/src/menus/dashboard.js
CHANGED
|
@@ -17,6 +17,12 @@ const { prompts } = require('../utils');
|
|
|
17
17
|
const dashboardMenu = async (service) => {
|
|
18
18
|
prepareStdin();
|
|
19
19
|
|
|
20
|
+
// Stop any global spinner before clearing
|
|
21
|
+
if (global.__hqxSpinner) {
|
|
22
|
+
global.__hqxSpinner.stop();
|
|
23
|
+
global.__hqxSpinner = null;
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
// Clear screen and show banner (always closed)
|
|
21
27
|
console.clear();
|
|
22
28
|
displayBanner();
|
package/src/pages/stats/index.js
CHANGED
|
@@ -124,7 +124,7 @@ const aggregateAccountData = async (activeAccounts) => {
|
|
|
124
124
|
} catch (e) {}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
// Trade history
|
|
127
|
+
// Trade history from ORDER_PLANT
|
|
128
128
|
if (typeof svc.getTradeHistory === 'function') {
|
|
129
129
|
try {
|
|
130
130
|
const tradesResult = await svc.getTradeHistory(account.accountId, 30);
|
|
@@ -137,7 +137,9 @@ const aggregateAccountData = async (activeAccounts) => {
|
|
|
137
137
|
connectionType: connType
|
|
138
138
|
})));
|
|
139
139
|
}
|
|
140
|
-
} catch (e) {
|
|
140
|
+
} catch (e) {
|
|
141
|
+
// Silent - trade history may not be available
|
|
142
|
+
}
|
|
141
143
|
}
|
|
142
144
|
} catch (e) {}
|
|
143
145
|
}
|