hedgequantx 2.9.200 → 2.9.201
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.
|
@@ -579,7 +579,8 @@ class HQXUltraScalpingStrategy extends EventEmitter {
|
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
|
|
582
|
-
//
|
|
583
|
-
|
|
582
|
+
// Export class (not instance) - consistent with HQX-2B pattern
|
|
583
|
+
// M1 is the class, use new M1() to create instances
|
|
584
|
+
const M1 = HQXUltraScalpingStrategy;
|
|
584
585
|
|
|
585
586
|
module.exports = { M1, HQXUltraScalpingStrategy, OrderSide, SignalStrength };
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ const executeAlgo = async ({ service, account, contract, config, strategy: strat
|
|
|
27
27
|
const strategyId = strategyInfo?.id || 'ultra-scalping';
|
|
28
28
|
const strategyName = strategyInfo?.name || 'HQX Scalping';
|
|
29
29
|
const strategyModule = loadStrategy(strategyId);
|
|
30
|
-
const StrategyClass = strategyModule.M1;
|
|
30
|
+
const StrategyClass = strategyModule.M1;
|
|
31
31
|
|
|
32
32
|
const supervisionEnabled = supervisionConfig?.supervisionEnabled && supervisionConfig?.agents?.length > 0;
|
|
33
33
|
const supervisionEngine = supervisionEnabled ? new SupervisionEngine(supervisionConfig) : null;
|