hedgequantx 2.6.19 → 2.6.21

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.6.19",
3
+ "version": "2.6.21",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -788,10 +788,13 @@ const selectSymbol = async (service) => {
788
788
  return (a.name || '').localeCompare(b.name || '');
789
789
  });
790
790
 
791
- const options = contracts.slice(0, 30).map(c => ({
792
- label: `${c.name} - ${c.description || ''} (${c.exchange || 'CME'})`,
793
- value: c
794
- }));
791
+ // Display contracts (uniform format: NAME - DESCRIPTION)
792
+ const options = contracts.slice(0, 30).map(c => {
793
+ const name = c.name || c.symbol || c.baseSymbol;
794
+ const desc = c.description || '';
795
+ const label = desc ? `${name} - ${desc}` : name;
796
+ return { label, value: c };
797
+ });
795
798
 
796
799
  options.push({ label: chalk.gray('< CANCEL'), value: null });
797
800
 
@@ -119,11 +119,13 @@ const selectSymbol = async (service, account) => {
119
119
 
120
120
  spinner.succeed(`FOUND ${contracts.length} CONTRACTS`);
121
121
 
122
- // Display sorted contracts from API
123
- const options = contracts.map(c => ({
124
- label: `${c.name} - ${c.description}`,
125
- value: c
126
- }));
122
+ // Display sorted contracts from API (uniform format: NAME - DESCRIPTION)
123
+ const options = contracts.map(c => {
124
+ const name = c.name || c.symbol || c.baseSymbol;
125
+ const desc = c.description || '';
126
+ const label = desc ? `${name} - ${desc}` : name;
127
+ return { label, value: c };
128
+ });
127
129
 
128
130
  options.push({ label: chalk.gray('< BACK'), value: 'back' });
129
131
 
@@ -768,10 +768,12 @@ class RithmicService extends EventEmitter {
768
768
  const product = productsToCheck.get(productKey);
769
769
 
770
770
  // 100% API data - no static symbol info
771
+ const productName = product?.productName || baseSymbol;
771
772
  results.push({
772
773
  symbol: contract.symbol,
773
774
  baseSymbol,
774
- name: product?.productName || baseSymbol,
775
+ name: contract.symbol, // Use trading symbol as name
776
+ description: productName, // Product name as description (like ProjectX)
775
777
  exchange: contract.exchange,
776
778
  // All other data comes from API at runtime
777
779
  });