hedgequantx 2.9.85 → 2.9.86
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
|
@@ -80,6 +80,12 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
80
80
|
const strategy = new StrategyClass({ tickSize });
|
|
81
81
|
strategy.initialize(contractId, tickSize);
|
|
82
82
|
|
|
83
|
+
// Handle strategy debug logs
|
|
84
|
+
strategy.on('log', (log) => {
|
|
85
|
+
const type = log.type === 'debug' ? 'debug' : log.type === 'info' ? 'analysis' : 'system';
|
|
86
|
+
ui.addLog(type, log.message);
|
|
87
|
+
});
|
|
88
|
+
|
|
83
89
|
// Initialize Market Data Feed (Rithmic TICKER_PLANT)
|
|
84
90
|
const marketFeed = new MarketDataFeed();
|
|
85
91
|
|