hedgequantx 2.9.171 → 2.9.172
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
|
@@ -126,6 +126,7 @@ const fetchAllFrontMonths = (service) => {
|
|
|
126
126
|
let frontMonthMsgCount = 0;
|
|
127
127
|
let template114Count = 0;
|
|
128
128
|
const templateIdsSeen = new Map();
|
|
129
|
+
const rawResponses = [];
|
|
129
130
|
const frontMonthHandler = (msg) => {
|
|
130
131
|
msgCount++;
|
|
131
132
|
frontMonthMsgCount++;
|
|
@@ -134,6 +135,11 @@ const fetchAllFrontMonths = (service) => {
|
|
|
134
135
|
const tid = msg.templateId;
|
|
135
136
|
templateIdsSeen.set(tid, (templateIdsSeen.get(tid) || 0) + 1);
|
|
136
137
|
|
|
138
|
+
// Log first few non-112 messages to see what we're getting
|
|
139
|
+
if (tid !== 112 && rawResponses.length < 5) {
|
|
140
|
+
rawResponses.push({ templateId: tid, dataLen: msg.data?.length });
|
|
141
|
+
}
|
|
142
|
+
|
|
137
143
|
if (msg.templateId !== 114) return;
|
|
138
144
|
template114Count++;
|
|
139
145
|
|
|
@@ -252,7 +258,8 @@ const fetchAllFrontMonths = (service) => {
|
|
|
252
258
|
totalMsgs: msgCount,
|
|
253
259
|
frontMonthMsgs: frontMonthMsgCount,
|
|
254
260
|
template114Received: template114Count,
|
|
255
|
-
templateIds: templateStats
|
|
261
|
+
templateIds: templateStats,
|
|
262
|
+
nonProductMsgs: rawResponses
|
|
256
263
|
});
|
|
257
264
|
resolve(results);
|
|
258
265
|
}, TIMEOUTS.RITHMIC_PRODUCTS);
|