账户权益
{{ account.total_equity ? '$' + formatNum(account.total_equity) : '--' }}
可用: {{ account.free_balance ? '$' + formatNum(account.free_balance) : '--' }}
已用: {{ account.used_balance ? '$' + formatNum(account.used_balance) : '--' }}
浮盈亏: {{ account.unrealized_pnl ? (account.unrealized_pnl >= 0 ? '+' : '') + formatNum(account.unrealized_pnl) : '0.00' }}
当前价格 {{ priceChange >= 0 ? '↑' : '↓' }}
{{ wsData.current_price ? '$' + formatNum(wsData.current_price) : '--' }}
{{ wsData.symbol || 'BTC/USDT' }} · {{ wsData.timeframe || '1h' }}
EMA 指标
EMA{{ form.ema_short }}
{{ wsData.signals?.ema_short ? formatNum(wsData.signals.ema_short) : '--' }}
EMA{{ form.ema_long }}
{{ wsData.signals?.ema_long ? formatNum(wsData.signals.ema_long) : '--' }}
{{ emaTrend > 0 ? '▲ 多头排列' : emaTrend < 0 ? '▼ 空头排列' : '— 交叉中' }}
RSI 指标
{{ wsData.signals?.rsi != null ? wsData.signals.rsi.toFixed(1) : '--' }}
超买 {{ form.rsi_overbought }} / 超卖 {{ form.rsi_oversold }}
日线 EMA20
{{ wsData.signals?.daily_ema20 ? formatNum(wsData.signals.daily_ema20) : '--' }}
{{ wsData.signals?.above_daily_ema20 ? '收盘价在上方' : '收盘价在下方' }}
多头 LONG
{{ wsData.positions?.long?.count || 0 }}/{{ form.max_positions }}
数量
{{ wsData.positions?.long?.amount || 0 }}
均价
{{ wsData.positions?.long?.avg_price ? '$' + formatNum(wsData.positions.long.avg_price) : '--' }}
盈亏
{{ wsData.positions?.long?.pnl != null ? (wsData.positions.long.pnl >= 0 ? '+' : '') + wsData.positions.long.pnl.toFixed(2) : '--' }}
最近入场: ${{ formatNum(wsData.last_entry.long) }}
空头 SHORT
{{ wsData.positions?.short?.count || 0 }}/{{ form.max_positions }}
现货模式不支持做空
数量
{{ wsData.positions?.short?.amount || 0 }}
均价
{{ wsData.positions?.short?.avg_price ? '$' + formatNum(wsData.positions.short.avg_price) : '--' }}
盈亏
{{ wsData.positions?.short?.pnl != null ? (wsData.positions.short.pnl >= 0 ? '+' : '') + wsData.positions.short.pnl.toFixed(2) : '--' }}
最近入场: ${{ formatNum(wsData.last_entry.short) }}
信号状态
金叉 {{ wsData.signals?.golden_cross ? '✓' : '—' }}
死叉 {{ wsData.signals?.death_cross ? '✓' : '—' }}
日线 {{ wsData.signals?.above_daily_ema20 ? '↑' : '↓' }}
超买 {{ wsData.signals?.rsi_overbought ? '✓' : '—' }}
超卖 {{ wsData.signals?.rsi_oversold ? '✓' : '—' }}
交易统计
总订单
{{ stats.total_orders || 0 }}
平仓次数
{{ stats.close_count || 0 }}
总盈亏
{{ (stats.total_pnl || 0) >= 0 ? '+' : '' }}{{ (stats.total_pnl || 0).toFixed(2) }}
胜率
{{ (stats.win_rate || 0).toFixed(1) }}%
最大盈利
+{{ (stats.max_win?.max_win || 0).toFixed(2) }}
最大亏损
{{ (stats.max_win?.max_loss || 0).toFixed(2) }}
订单记录
实时日志
API 测试
交易所接口连通性测试
{{ activeTab === 'orders' ? (orders.length + ' 条记录') : (logs.length + ' 条日志') }}
时间 交易对 方向 类型 价格 数量 金额 盈亏
{{ order.timestamp }} {{ order.symbol }} {{ order.side === 'buy' ? '买' : '卖' }} {{ order.type === 'open' ? '开仓' : order.type === 'add' ? '加仓' : '平仓' }} ${{ formatNum(order.price) }} {{ order.amount }} {{ formatNum(order.cost) }} {{ order.pnl >= 0 ? '+' : '' }}{{ order.pnl.toFixed(2) }}
暂无订单记录
暂无日志
[{{ log.timestamp }}] {{ log.message }}
⚠ 请先连接交易所再进行 API 测试
{{ apiTestResult.success ? '成功' : '失败' }}
{{ apiTestResultTime }}
{{ apiTestResult.message }}
{{ apiTestResult.data ? JSON.stringify(apiTestResult.data, null, 2) : '无数据' }}
正在测试...
{{ toast.message }}