feat: 更新网格引擎,添加跳过去重参数以优化新订单下单逻辑

This commit is contained in:
discountry
2025-10-08 05:44:10 +08:00
parent 96cf4ea47b
commit aa3d5e8c6c
+3 -3
View File
@@ -530,7 +530,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 }
);
this.pendingKeyUntil.set(key, this.now() + GridEngine.PENDING_TTL_MS);
if (placed?.orderId != null) {
@@ -913,7 +913,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) {
this.lastPlacementOrdersVersion = this.ordersVersion;
@@ -1266,7 +1266,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)