hedgequantx 2.9.180 → 2.9.181

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.180",
3
+ "version": "2.9.181",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -251,9 +251,23 @@ const fetchAllFrontMonths = (service) => {
251
251
 
252
252
  let sentCount = 0;
253
253
  let sendErrors = [];
254
- // Only send for first 5 products to test
254
+
255
+ // Prioritize CME products (ES, NQ, MNQ, MES, etc.) - most used by traders
255
256
  const productsArray = Array.from(productsToCheck.values());
256
- const testProducts = productsArray.slice(0, 60); // Limit to 60 for testing
257
+ const prioritySymbols = ['ES', 'NQ', 'MNQ', 'MES', 'RTY', 'M2K', 'YM', 'MYM', 'CL', 'MCL', 'GC', 'MGC', 'SI', 'HG', 'NG', 'ZB', 'ZN', 'ZF', 'ZT', '6E', '6J', '6B', '6A', '6C', '6S', 'ZC', 'ZS', 'ZW', 'ZM', 'ZL', 'HE', 'LE', 'GF'];
258
+
259
+ // Sort: priority symbols first (CME), then others
260
+ productsArray.sort((a, b) => {
261
+ const aPriority = prioritySymbols.includes(a.productCode) ? 0 : 1;
262
+ const bPriority = prioritySymbols.includes(b.productCode) ? 0 : 1;
263
+ if (aPriority !== bPriority) return aPriority - bPriority;
264
+ // Within same priority, prefer CME/CBOT
265
+ const aExchange = (a.exchange === 'CME' || a.exchange === 'CBOT') ? 0 : 1;
266
+ const bExchange = (b.exchange === 'CME' || b.exchange === 'CBOT') ? 0 : 1;
267
+ return aExchange - bExchange;
268
+ });
269
+
270
+ const testProducts = productsArray.slice(0, 60); // Limit to 60
257
271
 
258
272
  for (const product of testProducts) {
259
273
  try {