hedgequantx 1.8.43 → 1.8.44

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "1.8.43",
3
+ "version": "1.8.44",
4
4
  "description": "Prop Futures Algo Trading CLI - Connect to Topstep, Alpha Futures, and other prop firms",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -68,6 +68,7 @@ const showStats = async (service) => {
68
68
  // Collect REAL stats only - no estimation
69
69
  let totalBalance = null;
70
70
  let totalPnL = null;
71
+ let totalStartingBalance = 0;
71
72
  let allTrades = [];
72
73
  let totalOpenPositions = 0;
73
74
  let totalOpenOrders = 0;
@@ -88,6 +89,12 @@ const showStats = async (service) => {
88
89
  totalPnL = (totalPnL || 0) + account.profitAndLoss;
89
90
  }
90
91
 
92
+ // Calculate starting balance (balance - pnl)
93
+ if (account.balance !== null && account.balance !== undefined) {
94
+ const pnl = account.profitAndLoss || 0;
95
+ totalStartingBalance += (account.balance - pnl);
96
+ }
97
+
91
98
  // Positions & Orders
92
99
  const posResult = await svc.getPositions(account.accountId);
93
100
  if (posResult.success) totalOpenPositions += posResult.positions.length;