chore: 跟单订单状态日志与尾盘 auto 系数调整

- OrderStatusUpdateService: 移除「检查 N 个30秒前创建的订单是否成交」debug 日志
- BinanceKlineAutoSpreadService: auto 模式最小价差系数由 80% 改为 70%
- CryptoTailStrategyDto: 同步更新自动最小价差注释

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-14 19:35:37 +08:00
parent c6f9e5db61
commit 77b681a40e
3 changed files with 3 additions and 5 deletions
@@ -134,7 +134,7 @@ data class CryptoTailStrategyTriggerListResponse(
)
/**
* 自动最小价差计算响应(按 30 根历史 K 线 + IQR 剔除后 × 0.8
* 自动最小价差计算响应(按 30 根历史 K 线 + IQR 剔除后 × 0.7
*/
data class CryptoTailAutoMinSpreadResponse(
val minSpreadUp: String = "0",
@@ -9,7 +9,7 @@ import java.math.RoundingMode
import java.util.concurrent.ConcurrentHashMap
/**
* 自动最小价差:按周期计算。每个周期首次需要时,拉取该周期前的 20 根已收盘 K 线,按方向筛选、IQR 剔除后求平均 × 0.8,缓存 (interval, period)。
* 自动最小价差:按周期计算。每个周期首次需要时,拉取该周期前的 20 根已收盘 K 线,按方向筛选、IQR 剔除后求平均 × 0.7,缓存 (interval, period)。
* 不在保存策略时计算。
*/
@Service
@@ -21,7 +21,7 @@ class BinanceKlineAutoSpreadService(
private val symbol = "BTCUSDC"
private val historyLimit = 20
private val autoSpreadCoefficient = BigDecimal("0.8")
private val autoSpreadCoefficient = BigDecimal("0.7")
private val minSamplesAfterIqr = 3
/** (intervalSeconds, periodStartUnix) -> (minSpreadUp, minSpreadDown) */
@@ -198,8 +198,6 @@ class OrderStatusUpdateService(
return
}
logger.debug("检查 ${ordersToCheck.size} 个30秒前创建的订单是否成交")
// 按账户分组,避免重复创建 API 客户端
val ordersByAccount = ordersToCheck.groupBy { it.accountId }