bulltrackers-module 1.0.192 → 1.0.193
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.
|
@@ -382,9 +382,14 @@ async function runBatchPriceComputation(config, deps, dateStrings, calcs, target
|
|
|
382
382
|
|
|
383
383
|
// Optional Filtering for Subset Mode
|
|
384
384
|
if (targetInstrumentIds.length > 0) {
|
|
385
|
-
|
|
385
|
+
const requestedSet = new Set(targetInstrumentIds);
|
|
386
|
+
// Iterate over the loaded data and delete anything we didn't ask for
|
|
387
|
+
for (const loadedInstrumentId in pricesData) {
|
|
388
|
+
if (!requestedSet.has(loadedInstrumentId)) {
|
|
389
|
+
delete pricesData[loadedInstrumentId];
|
|
390
|
+
}
|
|
391
|
+
}
|
|
386
392
|
}
|
|
387
|
-
|
|
388
393
|
const writes = [];
|
|
389
394
|
|
|
390
395
|
// --- CALCULATION PHASE ---
|