hedgequantx 2.9.28 → 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 +1 -1
- package/src/config/propfirms.js +15 -2
package/package.json
CHANGED
package/src/config/propfirms.js
CHANGED
|
@@ -134,6 +134,14 @@ const PROPFIRMS = {
|
|
|
134
134
|
platform: 'Rithmic',
|
|
135
135
|
rithmicSystem: 'tradesea',
|
|
136
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'
|
|
137
145
|
}
|
|
138
146
|
};
|
|
139
147
|
|
|
@@ -146,12 +154,17 @@ const PROPFIRM_CHOICES = Object.entries(PROPFIRMS)
|
|
|
146
154
|
// Apex always first
|
|
147
155
|
if (a.name === 'Apex') return -1;
|
|
148
156
|
if (b.name === 'Apex') return 1;
|
|
149
|
-
// 4PropTrader
|
|
150
|
-
const lastItems = ['4PropTrader', '10XFutures'];
|
|
157
|
+
// 4PropTrader, 10XFutures, Rithmic Paper Trading always last
|
|
158
|
+
const lastItems = ['4PropTrader', '10XFutures', 'Rithmic Paper Trading'];
|
|
151
159
|
const aIsLast = lastItems.includes(a.name);
|
|
152
160
|
const bIsLast = lastItems.includes(b.name);
|
|
153
161
|
if (aIsLast && !bIsLast) return 1;
|
|
154
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
|
+
}
|
|
155
168
|
// Then alphabetical
|
|
156
169
|
return a.name.localeCompare(b.name);
|
|
157
170
|
});
|