chore: 移除 Maker 策略中的价格追逐阈值配置,简化订单计划逻辑

This commit is contained in:
discountry
2025-10-03 01:13:06 +08:00
parent 56bcaddb22
commit 9124c06315
6 changed files with 4 additions and 11 deletions
+1 -2
View File
@@ -428,9 +428,8 @@ export class OffsetMakerEngine {
}
private async syncOrders(targets: DesiredOrder[]): Promise<void> {
const tolerance = this.config.priceChaseThreshold;
const availableOrders = this.openOrders.filter((o) => !this.pendingCancelOrders.has(String(o.orderId)));
const { toCancel, toPlace } = makeOrderPlan(availableOrders, targets, tolerance);
const { toCancel, toPlace } = makeOrderPlan(availableOrders, targets);
for (const order of toCancel) {
if (this.pendingCancelOrders.has(String(order.orderId))) continue;