💰 余额 总计可用: {{ formatNum(Object.values(balances).reduce((sum, val) => sum + (typeof val === 'number' ? val : 0), 0), 2) }} USDT 账户总权益: {{ formatNum(totalEquity, 2) }} USDT 点击刷新按钮加载余额...
信号基础 组合 / 结算明细 费率对比 / ROI 实时价差 (K线) 24H 趋势统计 🤖 AI 综合决策 操作
{{ idx + 1 }}
{{ formatTime(sig.csv['时间']) }}
{{ sig.csv['币种'] }}
{{ sig.csv['建议'] }}
CSV差: {{ formatNum(sig.csv['CSV价差']) }}%
L: {{ (sig.csv['多方'] || '').toUpperCase() }}({{ sig.csv['多周期'] }}h) [{{ sig.csv['多状态'] }}]
⏰ {{ formatTime(sig.csv['多结算']) }} → {{ parseFloat(sig.csv['多费率']) > 0 ? '付' : '收' }} {{ formatNum(Math.abs(sig.csv['多费率']), 6) }}%
S: {{ (sig.csv['空方'] || '').toUpperCase() }}({{ sig.csv['空周期'] }}h) [{{ sig.csv['空状态'] }}]
⏰ {{ formatTime(sig.csv['空结算']) }} → {{ parseFloat(sig.csv['空费率']) > 0 ? '收' : '付' }} {{ formatNum(Math.abs(sig.csv['空费率']), 6) }}%
实差(8H): {{ formatNum(sig.live.real_rate_8h, 4) }}% ⚡
CSV差: {{ formatNum(sig.csv['费率差'], 4) }}%
1D:{{ formatNum(sig.csv['1日%']) }}% 3D:{{ formatNum(sig.csv['3日%']) }}%
回本: {{ sig.csv['回本H'] }}h / {{ sig.csv['回本天'] }}天
{{ sig.ai_decision }}
{{ sig.ai_reason }}
📊 持仓统计 多方持仓: {{ formatNum(positionStats.longValue, 2) }} USDT 空方持仓: {{ formatNum(positionStats.shortValue, 2) }} USDT 持仓总金额: {{ formatNum(positionStats.totalValue, 2) }} USDT 资金利用率: {{ formatNum(positionStats.utilizationRate, 2) }}% 持仓收益: {{ formatNum(positionStats.totalNetPnl, 2) }} USDT
📭 暂无持仓
ID / 时间 / 天数 币种 / 周期 交易所 & 数量 开仓价→现价 & 价差 费率 / 下次结算 24H / 48H 费率差 累计资金费 P&L / 手续费 Net Profit / ROI 操作
{{ pos.order.ID }}
{{ formatDateTime(pos.order['开仓时间']) }}
{{ pos.pnl?.duration_days || 0 }}天
{{ pos.order['币种'] }}
L:{{ pos.cy_l }}h / S:{{ pos.cy_s }}h
{{ (pos.order['做多交易所'] || '').toUpperCase() }} ({{ formatNum(pos.order['做多数量'], 6) }})
${{ formatNum(parseFloat(pos.order['做多金额'])) }} → ${{ formatNum(parseFloat(pos.order['做多数量']) * pos.pnl?.curr_p_l) }}
{{ (pos.order['做空交易所'] || '').toUpperCase() }} ({{ formatNum(pos.order['做空数量'], 6) }})
${{ formatNum(parseFloat(pos.order['做空金额'])) }} → ${{ formatNum(parseFloat(pos.order['做空数量']) * pos.pnl?.curr_p_s) }}
L: {{ formatNum(pos.order['做多开仓价'], 6) }} → {{ formatNum(pos.pnl?.curr_p_l, 6) }} ({{ formatNum(pos.pnl?.pct_l, 2) }}%)
S: {{ formatNum(pos.order['做空开仓价'], 6) }} → {{ formatNum(pos.pnl?.curr_p_s, 6) }} ({{ formatNum(pos.pnl?.pct_s, 2) }}%)
Gap: {{ formatNum(pos.pnl?.gap_open) }}% → {{ formatNum(pos.pnl?.gap_curr) }}%
L: {{ formatNum(pos.live_l?.curr_fr * 100, 6) }}% {{ pos.live_l?.curr_fr > 0 ? '付' : '收' }}
S: {{ formatNum(pos.live_s?.curr_fr * 100, 6) }}% {{ pos.live_s?.curr_fr > 0 ? '收' : '付' }}
Next: {{ pos.live_l?.next_settle }}
Net(8h): {{ formatNum(calcNet8h(pos), 4) }}%
24H: {{ formatNum((pos.live_s?.sum_24h - pos.live_l?.sum_24h) * 100, 6) }}%
48H: {{ formatNum((pos.live_s?.sum_48h - pos.live_l?.sum_48h) * 100, 6) }}%
Sum: {{ formatNum(pos.pnl?.fund_pnl, 6) }} U
L: {{ formatNum(pos.pnl?.fund_pnl_l, 6) }}
S: {{ formatNum(pos.pnl?.fund_pnl_s, 6) }}
({{ pos.live_l?.settled_count }}次)
价: {{ formatNum(pos.pnl?.price_pnl, 6) }}
费: -{{ formatNum(pos.pnl?.total_fees, 6) }}
{{ formatNum(pos.pnl?.net_pnl, 6) }} U
{{ formatNum(pos.pnl?.roi, 2) }}%
-
ID 时间 (开/平) 币种 多方 空方 金额(U) 价差 净利润 价差益 资金费 手续费 状态
{{ ord.ID }}
{{ formatDateTime(ord['开仓时间']) }}
{{ formatDateTime(ord['平仓时间']) }}
{{ ord['币种'] }} {{ (ord['做多交易所'] || '').toUpperCase() }} {{ (ord['做空交易所'] || '').toUpperCase() }} {{ formatNum(ord['做多金额'], 0) }} {{ formatNum(ord['初始费率差'], 3) }}% {{ formatNum(ord['最终利润'], 4) }} - {{ formatNum(ord['价差总盈亏'], 2) }} - {{ formatNum(ord['资金费总盈亏'], 2) }} - {{ formatNum(ord['平仓总手续费'], 2) }} - {{ ord['状态'] }}
合计: {{ formatNum(orderSummary.totalProfit, 4) }} {{ formatNum(orderSummary.totalGapPnl, 2) }} {{ formatNum(orderSummary.totalFundPnl, 2) }} {{ formatNum(orderSummary.totalFees, 2) }}
📭 没有符合条件的订单
总币种: {{ riskData.summary.total_coins }} ✅ 已对冲: {{ riskData.summary.hedged_count }} {{ riskData.summary.risk_count > 0 ? '⚠️' : '✅' }} 单腿风险: {{ riskData.summary.risk_count }}
⚠️ 发现 {{ riskData.risks.length }} 个单腿风险!请立即处理!

🔴 单腿风险

币种 方向 交易所 数量 价值 (U)
{{ r.coin }} {{ r.side }} {{ r.exchanges.join(', ') }} {{ formatNum(r.qty, 6) }} {{ formatNum(r.value, 2) }}

🟢 已对冲币种

币种 LONG 交易所 LONG 数量 LONG 价值 SHORT 交易所 SHORT 数量 SHORT 价值 差异 状态
{{ h.coin }} {{ h.long_exchanges.join(', ') }} {{ formatNum(h.long_qty, 4) }} {{ formatNum(h.long_value, 2) }} U {{ h.short_exchanges.join(', ') }} {{ formatNum(h.short_qty, 4) }} {{ formatNum(h.short_value, 2) }} U {{ formatNum(h.diff_pct, 2) }}% {{ h.status === 'OK' ? '✓' : '⚠' }}

📋 持仓明细

币种 交易所 方向 数量 价值 (U)
{{ p.coin }} {{ p.exchange.toUpperCase() }} {{ p.side.toUpperCase() }} {{ formatNum(p.qty, 6) }} {{ formatNum(p.value, 2) }}
✅ 没有发现活跃持仓

🌐 网络状态

当前 IP: {{ networkStatus.current_ip || '检测中...' }}
代理状态: {{ networkStatus.using_proxy ? '使用代理' : '直连模式' }}
已连接交易所: {{ networkStatus.exchange_count }} 个 ({{ (networkStatus.connected_exchanges || []).join(', ') }})

💰 交易参数

🔗 代理配置

部分设置需要重启服务生效
🔧 暂无后台任务
任务名称 描述 状态 执行间隔 上次执行 执行次数 操作
{{ taskId }} {{ task.description || '-' }} 🟢 运行中 🔴 已停止 {{ task.interval_seconds }}s {{ formatDateTime(task.last_run) }} - {{ task.run_count }}

ℹ️ 说明

  • all_check: 费率扫描任务 (5分钟/次),生成 qqtl.csv 和 zftl.csv 信号文件
  • asset_monitor: 资产监控任务 (1小时/次),记录资产历史并发送 TG 通知
  • 点击 ⚡ 立即执行 可手动触发一次任务,不影响定时循环
  • 任务配置存储在 code/core/tasks_config.json