hedgequantx 2.7.54 → 2.7.55
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/pages/stats/index.js +6 -8
package/package.json
CHANGED
package/src/pages/stats/index.js
CHANGED
|
@@ -188,20 +188,18 @@ const showStats = async (service) => {
|
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
//
|
|
192
|
-
const activeAccounts = allAccountsData
|
|
193
|
-
|
|
194
|
-
if (activeAccounts.length === 0) {
|
|
195
|
-
spinner.fail('No active accounts found');
|
|
196
|
-
await prompts.waitForEnter();
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
191
|
+
// Use all accounts (don't filter by status - Rithmic may have different status formats)
|
|
192
|
+
const activeAccounts = allAccountsData;
|
|
199
193
|
|
|
200
194
|
// Aggregate account data from APIs
|
|
201
195
|
const accountData = await aggregateAccountData(activeAccounts);
|
|
202
196
|
|
|
203
197
|
spinner.stop();
|
|
204
198
|
|
|
199
|
+
// Clear and show banner before displaying stats
|
|
200
|
+
console.clear();
|
|
201
|
+
displayBanner();
|
|
202
|
+
|
|
205
203
|
// Calculate stats from API data
|
|
206
204
|
const stats = aggregateStats(activeAccounts, accountData.allTrades);
|
|
207
205
|
const metrics = calculateDerivedMetrics(stats, accountData.totalStartingBalance, accountData.totalPnL);
|