hedgequantx 2.9.29 → 2.9.30

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.29",
3
+ "version": "2.9.30",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -15,14 +15,6 @@ const PROPFIRMS = {
15
15
  rithmicSystem: 'Apex',
16
16
  wsEndpoint: 'wss://ritpa11120.11.rithmic.com:443',
17
17
  },
18
- rithmic_paper: {
19
- id: 'rithmic-paper',
20
- name: 'Rithmic Paper Trading',
21
- displayName: 'Rithmic Paper Trading',
22
- platform: 'Rithmic',
23
- rithmicSystem: 'Rithmic Paper Trading',
24
- wsEndpoint: 'wss://ritpa11120.11.rithmic.com:443',
25
- },
26
18
  topsteptrader: {
27
19
  id: 'topsteptrader',
28
20
  name: 'TopstepTrader',
@@ -142,6 +134,14 @@ const PROPFIRMS = {
142
134
  platform: 'Rithmic',
143
135
  rithmicSystem: 'tradesea',
144
136
  wsEndpoint: 'wss://ritpa11120.11.rithmic.com:443'
137
+ },
138
+ rithmic_paper: {
139
+ id: 'rithmic-paper',
140
+ name: 'Rithmic Paper Trading',
141
+ displayName: 'Rithmic Paper Trading',
142
+ platform: 'Rithmic',
143
+ rithmicSystem: 'Rithmic Paper Trading',
144
+ wsEndpoint: 'wss://ritpa11120.11.rithmic.com:443'
145
145
  }
146
146
  };
147
147
 
@@ -154,15 +154,17 @@ const PROPFIRM_CHOICES = Object.entries(PROPFIRMS)
154
154
  // Apex always first
155
155
  if (a.name === 'Apex') return -1;
156
156
  if (b.name === 'Apex') return 1;
157
- // Rithmic Paper Trading second
158
- if (a.name === 'Rithmic Paper Trading') return -1;
159
- if (b.name === 'Rithmic Paper Trading') return 1;
160
- // 4PropTrader and 10XFutures always last
161
- const lastItems = ['4PropTrader', '10XFutures'];
157
+ // 4PropTrader, 10XFutures, Rithmic Paper Trading always last
158
+ const lastItems = ['4PropTrader', '10XFutures', 'Rithmic Paper Trading'];
162
159
  const aIsLast = lastItems.includes(a.name);
163
160
  const bIsLast = lastItems.includes(b.name);
164
161
  if (aIsLast && !bIsLast) return 1;
165
162
  if (!aIsLast && bIsLast) return -1;
163
+ // If both are last items, order them: 10XFutures, 4PropTrader, Rithmic Paper Trading
164
+ if (aIsLast && bIsLast) {
165
+ const order = ['10XFutures', '4PropTrader', 'Rithmic Paper Trading'];
166
+ return order.indexOf(a.name) - order.indexOf(b.name);
167
+ }
166
168
  // Then alphabetical
167
169
  return a.name.localeCompare(b.name);
168
170
  });