hedgequantx 2.9.176 → 2.9.178

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.176",
3
+ "version": "2.9.178",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -128,12 +128,14 @@ const fetchAllFrontMonths = (service) => {
128
128
  const exchange = decoded.exchange;
129
129
  const productName = decoded.productName;
130
130
 
131
- // Log first 5 decoded products
132
- if (sampleProducts.length < 5 && productCode) {
131
+ // Log first 5 raw decoded messages to see field names
132
+ if (sampleProducts.length < 5) {
133
+ const keys = Object.keys(decoded.toJSON ? decoded.toJSON() : decoded);
133
134
  sampleProducts.push({
134
- code: productCode,
135
- exchange: exchange,
136
- name: productName?.substring(0, 30)
135
+ code: productCode || 'NONE',
136
+ exchange: exchange || 'NONE',
137
+ name: productName?.substring(0, 30) || 'NONE',
138
+ fields: keys.slice(0, 10)
137
139
  });
138
140
  }
139
141
 
@@ -5,8 +5,9 @@ message ResponseProductCodes
5
5
  {
6
6
  required int32 template_id = 154467; // Template ID = 112
7
7
  repeated string rp_code = 132766; // Response code
8
+ repeated string rp_code2 = 132764; // Response code 2
8
9
  repeated string user_msg = 132760; // Echo of user message
9
10
  optional string exchange = 110101; // Exchange
10
- optional string product_code = 110102; // Product code (e.g., "MNQ", "ES")
11
+ optional string product_code = 100749; // Product code (e.g., "MNQ", "ES") - CORRECT FIELD ID
11
12
  optional string product_name = 110103; // Product name
12
13
  }