feat(crypto-tail): 策略最小价差(无/固定/自动) + 前端默认与文案

- 后端: 最小价差 DB/Entity/DTO、Binance K线 REST+WS、自动价差 IQR 预计算与执行时校验
- 前端: 最小价差(自动-固定-无),默认自动,label 旁 info 说明,选择自动不展示建议约
- i18n: minSpreadModeTip 说明不写死标的
- 文档: crypto-tail-strategy-min-spread-flow.md
- scripts: Binance K线拉取与 WS 示例

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
WrBug
2026-02-14 15:16:44 +08:00
co-authored by Cursor
parent 7ec9311df2
commit b50e43c239
22 changed files with 930 additions and 14 deletions
+10
View File
@@ -1051,6 +1051,10 @@ export interface CryptoTailStrategyDto {
maxPrice: string
amountMode: string
amountValue: string
/** 最小价差模式: NONE, FIXED, AUTO */
minSpreadMode?: string
/** 最小价差数值(FIXED 时必填;AUTO 时可为计算值) */
minSpreadValue?: string | null
enabled: boolean
lastTriggerAt?: number
/** 已实现总收益 USDC */
@@ -1063,6 +1067,12 @@ export interface CryptoTailStrategyDto {
updatedAt: number
}
/** 自动最小价差计算响应 */
export interface CryptoTailAutoMinSpreadResponse {
minSpreadUp: string
minSpreadDown: string
}
/**
* 尾盘策略触发记录
*/