hedgequantx 1.2.66 → 1.2.67
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/pages/algo.js +5 -0
package/package.json
CHANGED
package/src/pages/algo.js
CHANGED
|
@@ -465,6 +465,11 @@ const launchAlgo = async (service, account, contract, numContracts, dailyTarget,
|
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
// Setup event handlers - logs scroll down naturally
|
|
468
|
+
hqxServer.on('latency', (data) => {
|
|
469
|
+
latency = data.latency || 0;
|
|
470
|
+
displayUI(); // Refresh UI with new latency
|
|
471
|
+
});
|
|
472
|
+
|
|
468
473
|
hqxServer.on('log', (data) => {
|
|
469
474
|
printLog(data.type || 'info', data.message);
|
|
470
475
|
});
|