hedgequantx 2.9.100 → 2.9.101

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": "2.9.100",
3
+ "version": "2.9.101",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -108,28 +108,28 @@ const oneAccountMenu = async (service) => {
108
108
  contract = contractsResult.contracts.find(c => c.baseSymbol === extractedBase);
109
109
  }
110
110
  }
111
- }
112
-
113
- // Find strategy
114
- const strategies = getAvailableStrategies();
115
- strategy = strategies.find(s => s.id === lastConfig.strategyId);
116
-
117
- // Restore config
118
- if (contract && strategy) {
119
- config = {
120
- contracts: lastConfig.contracts,
121
- dailyTarget: lastConfig.dailyTarget,
122
- maxRisk: lastConfig.maxRisk,
123
- showName: lastConfig.showName
124
- };
125
- loadSpinner.succeed('Configuration loaded');
111
+
112
+ // Find strategy
113
+ const strategies = getAvailableStrategies();
114
+ strategy = strategies.find(s => s.id === lastConfig.strategyId);
115
+
116
+ // Restore config
117
+ if (contract && strategy) {
118
+ config = {
119
+ contracts: lastConfig.contracts,
120
+ dailyTarget: lastConfig.dailyTarget,
121
+ maxRisk: lastConfig.maxRisk,
122
+ showName: lastConfig.showName
123
+ };
124
+ loadSpinner.succeed('Configuration loaded');
125
+ } else {
126
+ loadSpinner.fail('Symbol or strategy no longer available, please reconfigure');
127
+ selectedAccount = null;
128
+ }
126
129
  } else {
127
- loadSpinner.fail('Symbol or strategy no longer available, please reconfigure');
130
+ loadSpinner.fail('Failed to load contracts');
128
131
  selectedAccount = null;
129
132
  }
130
- } else {
131
- loadSpinner.fail('Failed to load contracts');
132
- selectedAccount = null;
133
133
  }
134
134
  }
135
135
  }