feat: 更新网格引擎,添加跳过去重选项以优化订单处理逻辑

This commit is contained in:
discountry
2025-10-08 02:38:01 +08:00
parent 95426e222b
commit bb072b2d1d
+2 -2
View File
@@ -701,7 +701,7 @@ export class GridEngine {
this.log,
false,
undefined,
{ priceTick: this.config.priceTick, qtyStep: this.config.qtyStep }
{ priceTick: this.config.priceTick, qtyStep: this.config.qtyStep, skipDedupe: true }
);
if (placed) {
activeKeyCounts.set(key, (activeKeyCounts.get(key) ?? 0) + 1);
@@ -984,7 +984,7 @@ export class GridEngine {
this.log,
false,
undefined,
{ priceTick: this.config.priceTick, qtyStep: this.config.qtyStep }
{ priceTick: this.config.priceTick, qtyStep: this.config.qtyStep, skipDedupe: true }
);
if (placed) {
// mark pending exposure broadly so we don't re-open immediately on that source level (choose closest source side)