refactor: 尾盘策略统一更名为加密价差策略
- 前端:菜单父级「加密价差策略」,子项「策略配置」「实时监控」;i18n 与类型注释全部替换 - 后端:i18n、ErrorCode、DTO/实体/服务注释与日志「尾盘」→「加密价差策略」;TG 通知文案 - 文档:README、中英文用户指南、UI 规格、任务、流程、价差流程、市场数据、动态系数等全部更新 - 不修改 API 路径、路由、表名与类名,保持兼容 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -168,7 +168,7 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
|
||||
{
|
||||
key: '/crypto-tail-management',
|
||||
icon: <LineChartOutlined />,
|
||||
label: t('menu.cryptoTail'),
|
||||
label: t('menu.cryptoSpreadStrategy'),
|
||||
children: [
|
||||
{
|
||||
key: '/crypto-tail-strategy',
|
||||
|
||||
@@ -312,9 +312,9 @@
|
||||
"leaders": "Leader Management",
|
||||
"templates": "Templates",
|
||||
"copyTradingConfig": "Copy Trading Config",
|
||||
"cryptoTail": "Crypto Tail",
|
||||
"cryptoTailStrategy": "Tail Strategy",
|
||||
"cryptoTailMonitor": "Tail Monitor",
|
||||
"cryptoSpreadStrategy": "Crypto Spread Strategy",
|
||||
"cryptoTailStrategy": "Strategy Config",
|
||||
"cryptoTailMonitor": "Real-time Monitor",
|
||||
"positions": "Position Management",
|
||||
"backtest": "Backtest",
|
||||
"statistics": "Statistics",
|
||||
@@ -1486,12 +1486,12 @@
|
||||
"cryptoTailStrategy": {
|
||||
"binanceApiAlert": {
|
||||
"title": "Cannot connect to Binance API — strategy cannot run for now",
|
||||
"description": "Tail strategy needs Binance market data to work. The connection failed; this may be a network issue or Binance outage. Try again later by clicking the button below.",
|
||||
"description": "Crypto spread strategy needs Binance market data to work. The connection failed; this may be a network issue or Binance outage. Try again later by clicking the button below.",
|
||||
"recheck": "Re-check"
|
||||
},
|
||||
"list": {
|
||||
"title": "Crypto Tail Strategy",
|
||||
"walletTip": "Use a dedicated wallet for tail strategy. Do not use it for manual trading or copy trading to avoid balance/position issues.",
|
||||
"title": "Crypto Spread Strategy",
|
||||
"walletTip": "Use a dedicated wallet for crypto spread strategy. Do not use it for manual trading or copy trading to avoid balance/position issues.",
|
||||
"addStrategy": "Add Strategy",
|
||||
"strategyName": "Strategy Name",
|
||||
"account": "Account",
|
||||
@@ -1548,7 +1548,7 @@
|
||||
},
|
||||
"redeemRequiredModal": {
|
||||
"title": "Configure Auto Redeem First",
|
||||
"description": "Tail strategy requires auto redeem. Please configure Builder API Key and enable auto redeem in System Settings.",
|
||||
"description": "Crypto spread strategy requires auto redeem. Please configure Builder API Key and enable auto redeem in System Settings.",
|
||||
"goToSettings": "Go to Settings",
|
||||
"cancel": "Cancel"
|
||||
},
|
||||
@@ -1579,7 +1579,7 @@
|
||||
}
|
||||
},
|
||||
"cryptoTailMonitor": {
|
||||
"title": "Tail Strategy Monitor",
|
||||
"title": "Crypto Spread Strategy Monitor",
|
||||
"selectStrategy": "Strategy",
|
||||
"selectStrategyPlaceholder": "Select a strategy to monitor",
|
||||
"direction": "Direction",
|
||||
|
||||
@@ -312,9 +312,9 @@
|
||||
"leaders": "Leader 管理",
|
||||
"templates": "跟单模板",
|
||||
"copyTradingConfig": "跟单配置",
|
||||
"cryptoTail": "尾盘",
|
||||
"cryptoTailStrategy": "尾盘策略",
|
||||
"cryptoTailMonitor": "尾盘监控",
|
||||
"cryptoSpreadStrategy": "加密价差策略",
|
||||
"cryptoTailStrategy": "策略配置",
|
||||
"cryptoTailMonitor": "实时监控",
|
||||
"positions": "仓位管理",
|
||||
"backtest": "回测",
|
||||
"statistics": "统计信息",
|
||||
@@ -1486,12 +1486,12 @@
|
||||
"cryptoTailStrategy": {
|
||||
"binanceApiAlert": {
|
||||
"title": "无法连接币安 API,策略暂时不能运行",
|
||||
"description": "尾盘策略需要从币安获取行情数据才能工作。当前连接失败,可能是网络问题或币安服务异常,请稍后点击下方按钮重新检测。",
|
||||
"description": "加密价差策略需要从币安获取行情数据才能工作。当前连接失败,可能是网络问题或币安服务异常,请稍后点击下方按钮重新检测。",
|
||||
"recheck": "重新检测"
|
||||
},
|
||||
"list": {
|
||||
"title": "加密尾盘策略",
|
||||
"walletTip": "请使用单独的钱包运行尾盘策略,避免该钱包用于手动交易、跟单等其他操作,否则可能导致余额或仓位变化,造成策略执行异常。",
|
||||
"title": "加密价差策略",
|
||||
"walletTip": "请使用单独的钱包运行加密价差策略,避免该钱包用于手动交易、跟单等其他操作,否则可能导致余额或仓位变化,造成策略执行异常。",
|
||||
"addStrategy": "新增策略",
|
||||
"strategyName": "策略名称",
|
||||
"account": "账户",
|
||||
@@ -1548,7 +1548,7 @@
|
||||
},
|
||||
"redeemRequiredModal": {
|
||||
"title": "请先配置自动赎回",
|
||||
"description": "尾盘策略依赖自动赎回功能,请先在系统设置中配置 Builder API Key 并开启自动赎回。",
|
||||
"description": "加密价差策略依赖自动赎回功能,请先在系统设置中配置 Builder API Key 并开启自动赎回。",
|
||||
"goToSettings": "去配置",
|
||||
"cancel": "取消"
|
||||
},
|
||||
@@ -1579,7 +1579,7 @@
|
||||
}
|
||||
},
|
||||
"cryptoTailMonitor": {
|
||||
"title": "尾盘策略监控",
|
||||
"title": "加密价差策略监控",
|
||||
"selectStrategy": "选择策略",
|
||||
"selectStrategyPlaceholder": "请选择要监控的策略",
|
||||
"direction": "监控方向",
|
||||
|
||||
@@ -312,9 +312,9 @@
|
||||
"leaders": "Leader 管理",
|
||||
"templates": "跟單模板",
|
||||
"copyTradingConfig": "跟單配置",
|
||||
"cryptoTail": "尾盤",
|
||||
"cryptoTailStrategy": "尾盤策略",
|
||||
"cryptoTailMonitor": "尾盤監控",
|
||||
"cryptoSpreadStrategy": "加密價差策略",
|
||||
"cryptoTailStrategy": "策略配置",
|
||||
"cryptoTailMonitor": "即時監控",
|
||||
"positions": "倉位管理",
|
||||
"backtest": "回測",
|
||||
"statistics": "統計信息",
|
||||
@@ -1486,12 +1486,12 @@
|
||||
"cryptoTailStrategy": {
|
||||
"binanceApiAlert": {
|
||||
"title": "無法連接幣安 API,策略暫時不能運行",
|
||||
"description": "尾盤策略需要從幣安取得行情資料才能運作。目前連線失敗,可能是網路問題或幣安服務異常,請稍後點擊下方按鈕重新檢測。",
|
||||
"description": "加密價差策略需要從幣安取得行情資料才能運作。目前連線失敗,可能是網路問題或幣安服務異常,請稍後點擊下方按鈕重新檢測。",
|
||||
"recheck": "重新檢測"
|
||||
},
|
||||
"list": {
|
||||
"title": "加密尾盤策略",
|
||||
"walletTip": "請使用單獨的錢包運行尾盤策略,避免該錢包用於手動交易、跟單等其他操作,否則可能導致餘額或倉位變化,造成策略執行異常。",
|
||||
"title": "加密價差策略",
|
||||
"walletTip": "請使用單獨的錢包運行加密價差策略,避免該錢包用於手動交易、跟單等其他操作,否則可能導致餘額或倉位變化,造成策略執行異常。",
|
||||
"addStrategy": "新增策略",
|
||||
"strategyName": "策略名稱",
|
||||
"account": "賬戶",
|
||||
@@ -1548,7 +1548,7 @@
|
||||
},
|
||||
"redeemRequiredModal": {
|
||||
"title": "請先配置自動贖回",
|
||||
"description": "尾盤策略依賴自動贖回功能,請先在系統設置中配置 Builder API Key 並開啟自動贖回。",
|
||||
"description": "加密價差策略依賴自動贖回功能,請先在系統設置中配置 Builder API Key 並開啟自動贖回。",
|
||||
"goToSettings": "去配置",
|
||||
"cancel": "取消"
|
||||
},
|
||||
@@ -1579,7 +1579,7 @@
|
||||
}
|
||||
},
|
||||
"cryptoTailMonitor": {
|
||||
"title": "尾盤策略監控",
|
||||
"title": "加密價差策略監控",
|
||||
"selectStrategy": "選擇策略",
|
||||
"selectStrategyPlaceholder": "請選擇要監控的策略",
|
||||
"direction": "監控方向",
|
||||
|
||||
@@ -446,7 +446,7 @@ export const apiService = {
|
||||
},
|
||||
|
||||
/**
|
||||
* 尾盘策略 API
|
||||
* 加密价差策略 API
|
||||
*/
|
||||
cryptoTailStrategy: {
|
||||
list: (data: { accountId?: number; enabled?: boolean } = {}) =>
|
||||
|
||||
@@ -1036,7 +1036,7 @@ export interface BacktestTaskDto {
|
||||
}
|
||||
|
||||
/**
|
||||
* 尾盘策略
|
||||
* 加密价差策略
|
||||
*/
|
||||
export interface CryptoTailStrategyDto {
|
||||
id: number
|
||||
@@ -1076,7 +1076,7 @@ export interface CryptoTailAutoMinSpreadResponse {
|
||||
}
|
||||
|
||||
/**
|
||||
* 尾盘策略触发记录
|
||||
* 加密价差策略触发记录
|
||||
*/
|
||||
export interface CryptoTailStrategyTriggerDto {
|
||||
id: number
|
||||
@@ -1098,7 +1098,7 @@ export interface CryptoTailStrategyTriggerDto {
|
||||
}
|
||||
|
||||
/**
|
||||
* 尾盘策略市场选项
|
||||
* 加密价差策略市场选项
|
||||
*/
|
||||
export interface CryptoTailMarketOptionDto {
|
||||
slug: string
|
||||
@@ -1109,7 +1109,7 @@ export interface CryptoTailMarketOptionDto {
|
||||
}
|
||||
|
||||
/**
|
||||
* 尾盘策略监控初始化响应
|
||||
* 加密价差策略监控初始化响应
|
||||
*/
|
||||
export interface CryptoTailMonitorInitResponse {
|
||||
/** 策略ID */
|
||||
@@ -1159,7 +1159,7 @@ export interface CryptoTailMonitorInitResponse {
|
||||
}
|
||||
|
||||
/**
|
||||
* 尾盘策略监控实时推送数据
|
||||
* 加密价差策略监控实时推送数据
|
||||
*/
|
||||
export interface CryptoTailMonitorPushData {
|
||||
/** 策略ID */
|
||||
|
||||
Reference in New Issue
Block a user