hedgequantx 2.9.99 → 2.9.100
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
|
@@ -87,6 +87,9 @@ const oneAccountMenu = async (service) => {
|
|
|
87
87
|
selectedAccount = matchingAccount;
|
|
88
88
|
accountService = selectedAccount.service || connections.getServiceForAccount(selectedAccount.accountId) || service;
|
|
89
89
|
|
|
90
|
+
// Show spinner while loading
|
|
91
|
+
const loadSpinner = ora({ text: 'Loading configuration...', color: 'yellow' }).start();
|
|
92
|
+
|
|
90
93
|
// Load contracts to find the saved symbol (match by baseSymbol first, then exact symbol)
|
|
91
94
|
const contractsResult = await accountService.getContracts();
|
|
92
95
|
if (contractsResult.success && contractsResult.contracts.length > 0) {
|
|
@@ -119,11 +122,14 @@ const oneAccountMenu = async (service) => {
|
|
|
119
122
|
maxRisk: lastConfig.maxRisk,
|
|
120
123
|
showName: lastConfig.showName
|
|
121
124
|
};
|
|
122
|
-
|
|
125
|
+
loadSpinner.succeed('Configuration loaded');
|
|
123
126
|
} else {
|
|
124
|
-
|
|
127
|
+
loadSpinner.fail('Symbol or strategy no longer available, please reconfigure');
|
|
125
128
|
selectedAccount = null;
|
|
126
129
|
}
|
|
130
|
+
} else {
|
|
131
|
+
loadSpinner.fail('Failed to load contracts');
|
|
132
|
+
selectedAccount = null;
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
135
|
}
|