GrokBot 安全授权

请输入配置项中的动态授权密码解锁控制台

{{ loginError }}

Bitget + Grok 4.5 AI 量化交易控制台

Swoole + Bitget API + Grok API 策略监控

Bitget 交易所自动量化交易机器人 | 每日 08:00 定时分析决策

上次 GROK 分析
{{ statusData.last_grok_fetch || '未分析' }}
合约 USDT 权益
${{ (statusData.usdt_equity || 0).toFixed(2) }}
合约钱包余额
${{ (statusData.wallet_balance || 0).toFixed(2) }}
合约可用
${{ (statusData.available || 0).toFixed(2) }}
现货可用 USDT
${{ (statusData.spot_available_usdt || 0).toFixed(2) }}
现货账户总资产(U)
${{ (statusData.total_spot_account_usdt || statusData.spot_available_usdt || 0).toFixed(2) }}
未实现总盈亏
${{ (statusData.unrealized_pl || 0) > 0 ? '+' : '' }}{{ (statusData.unrealized_pl || 0).toFixed(2) }}
{{ (statusData.wss_metrics && statusData.wss_metrics.is_healthy) ? '📡 Bitget WSS 长连接推流正常 (0 HTTP 轮询防封 IP)' : ('⚠️ Bitget WSS 链接状态: ' + ((statusData.wss_metrics ? statusData.wss_metrics.status : '未连接'))) }}
WSS 刷新: {{ lastPollTime || '已就绪' }}
收包数: {{ statusData.wss_metrics ? statusData.wss_metrics.msg_count : 0 }} 已缓存行情: {{ statusData.wss_metrics ? statusData.wss_metrics.cached_tickers : 0 }} 币种 最新心跳: {{ statusData.wss_metrics ? statusData.wss_metrics.last_msg_at : '-' }} 重连: {{ statusData.wss_metrics.reconnect_count }}次

B Bitget 真实合约持仓 (Active Positions)

最大持仓限制:
每单保证金: U
续跑亏损门槛: U
失效重构阈值: %
移动止损: 激活≥ % 回撤 %平仓
交易对 方向 保证金 杠杆 开仓均价 标记现价 🚀 移动追踪 (Trailing Stop) 🎯 目标止盈 (TP) 🛡️ 生效止损 (SL) 未实现盈亏 ⚡ 平仓操作
当前账户无活动持仓
{{ formatSymbol(p.symbol) }} {{ isLong(p.holdSide) ? '多' : '空' }} ${{ formatPrice(p.marginSize || ((parseFloat(p.openPriceAvg || 0) * parseFloat(p.total || p.available || 0)) / (parseInt(p.leverage) || 20))) }} {{ p.leverage || 20 }}x ${{ formatPrice(p.openPriceAvg) }} ${{ formatPrice(p.markPrice) }}
追踪中 ({{ p.holdSide === 'short' ? '最低触底' : '最高摸顶' }} ${{ formatPrice(p.trailing_stop.peak_price) }}) 锁利线: ${{ formatPrice(p.trailing_stop.trailing_sl) }} 🔒 锁利保底: {{ p.lock_profit_usdt >= 0 ? '+' : '' }}${{ p.lock_profit_usdt }} U ({{ p.lock_profit_pct >= 0 ? '+' : '' }}{{ p.lock_profit_pct }}%)
待激活 (≥{{ (statusData.trailing_activation_profit || 1.0) }}%)
${{ formatPrice(p.takeProfit) }} 预赚: +${{ p.tp_est_profit_usdt }} U ({{ p.tp_profit_pct > 0 ? '+' : '' }}{{ p.tp_profit_pct }}%)
未设止盈
${{ formatPrice((p.trailing_stop && p.trailing_stop.activated && p.trailing_stop.trailing_sl > 0) ? p.trailing_stop.trailing_sl : (p.stopLoss || p.presetStopLossPrice || findSignalSL(p.symbol))) }} 预亏: ${{ p.sl_est_loss_usdt }} U ({{ p.sl_loss_pct }}%)
${{ (parseFloat(p.unrealizedPL) || 0) > 0 ? '+' : '' }}{{ (parseFloat(p.unrealizedPL) || 0).toFixed(2) }} USDT

Grok AI 全网多空与山寨高空精选标的池 (30标的并发研报)

已选标的池: {{ signals.length }} 个标的
标的/交易对 方向 置信度 ⚡ 当前实时价 建议开仓价 🎯 止盈价 (预估盈利) 🛡️ 止损价 (预估亏损) ⏱️ 研报生成时间 ⌛ 有效截止时间 状态
暂无 Grok AI 合约分析信号数据
{{ sig.symbol }} {{ sig.action === 'BUY' ? '多' : '空' }} {{ sig.confidence }}% ${{ formatPrice(sig.current_price || (statusData.tickers ? statusData.tickers[formatSymbol(sig.symbol)] : 0)) }} ${{ formatPrice(sig.entry_price) }}
${{ formatPrice(sig.take_profit) }}
预赚: +${{ sig.tp_est_profit_usdt }} U ({{ sig.tp_profit_pct > 0 ? '+' : '' }}{{ sig.tp_profit_pct }}%)
${{ formatPrice(sig.stop_loss) }}
预亏: ${{ sig.sl_est_loss_usdt }} U ({{ sig.sl_loss_pct }}%)
盈亏比 {{ sig.risk_reward_ratio }}:1
{{ sig.fetched_at || '--' }} {{ sig.expires_at || '--' }} 有效待挂 已结案/失效

合约收益与胜率概览 (Profit & Win Rate Overview)

已平仓: {{ statsData.closed_trades || 0 }} 笔
今日净收益
${{ (statsData.today_profit || 0) > 0 ? '+' : '' }}{{ (statsData.today_profit || 0).toFixed(2) }}
近7日净收益
${{ (statsData.seven_day_profit || 0) > 0 ? '+' : '' }}{{ (statsData.seven_day_profit || 0).toFixed(2) }}
近30日净收益
${{ (statsData.month_profit || 0) > 0 ? '+' : '' }}{{ (statsData.month_profit || 0).toFixed(2) }}
历史累计盈亏
${{ (statsData.total_profit || 0) > 0 ? '+' : '' }}{{ (statsData.total_profit || 0).toFixed(2) }}
已平仓总胜率
{{ statsData.win_rate || 0 }}% ({{ statsData.closed_trades || 0 }}笔)

Bitget 现货账户资产总览与估值 (Spot Assets & USDT Valuation)

现货总资产: ${{ (statusData.total_spot_account_usdt || statusData.spot_available_usdt || 0).toFixed(2) }} USDT
现货可用 USDT
${{ (statusData.spot_available_usdt || 0).toFixed(2) }}
持代币折算 U 总值
${{ (statusData.total_spot_asset_usdt || 0).toFixed(2) }}
现货账户总资产(U)
${{ (statusData.total_spot_account_usdt || 0).toFixed(2) }}
持仓代币种类
{{ Object.keys(statusData.spot_assets || {}).length }} 个
现货资产 可用数量 冻结数量 💰 投入本金 (U) 🎯 成本均价 ($) ⚡ 当前现价 ($) 总价值 (折合 USDT) 平仓操作
暂无持有的现货代币资产
{{ coinName }} {{ parseFloat(ast.available || 0).toFixed(4) }} {{ parseFloat(ast.frozen || 0).toFixed(4) }} ${{ coinName === 'USDT' ? parseFloat(ast.available || 0).toFixed(2) : (ast.total_cost_usdt > 0 ? parseFloat(ast.total_cost_usdt).toFixed(2) : '--') }} ${{ coinName === 'USDT' ? '1.0000' : (ast.cost_price > 0 ? formatPrice(ast.cost_price) : '--') }} ${{ coinName === 'USDT' ? '1.0000' : formatPrice(ast.current_price) }} ${{ parseFloat(ast.value_usdt || 0).toFixed(2) }} USDT 计价本位币

自主实时市价买入现货 (Instant Spot Market Buy)

直接输入 USDT 价值金额,系统将立即在 Bitget 现货交易所执行市价买入并计入持仓

现货可用: ${{ (statusData.spot_available_usdt || 0).toFixed(2) }} USDT
{{ item.symbol }}
${{ formatPrice(item.price) }} (最低 ${{ item.min_usdt }} U)
$ USDT

D 自主现货定投计划任务 (Custom Spot DCA Plans)

自主选择现货标的、定投周期与 USDT 金额,系统后台到期自动市价买入

新建现货定投计划
$ USDT
定投标的 每次定投价值 (USDT) 定投周期 上次定投时间 下次定投时间 状态 操作管理
暂无自定义现货定投计划,请点击右上角「➕ 添加定投计划」
{{ plan.symbol }} ${{ parseFloat(plan.usdt_amount).toFixed(2) }} USDT {{ formatPlanInterval(plan.interval_hours) }} {{ plan.last_run_at || '尚未执行' }} {{ plan.next_run_at || '待触发' }} {{ plan.is_active ? '🟢 运行中' : '⏸ 已暂停' }}

现货定投历史扣款明细 (Spot DCA Trades History)

累计买入记录: {{ spotTrades.length }} 笔
交易对 定投扣款金额 Bitget 现货订单 ID 执行状态 定投买入时间
暂无现货定投历史买入记录
{{ trade.symbol }} ${{ parseFloat(trade.usdt_amount).toFixed(2) }} USDT {{ trade.order_id }} {{ trade.status || 'completed' }} {{ trade.executed_at }}

策略系统日志 (最新日志流)

15min自动重置清空 3s 轮询
[System Status] 监控后端正常运行中...
{{ line }}

手动导入 Grok AI 研报信号 JSON

将你在 xAI Console 或外部得到的 Grok 研报纯 JSON 数据粘贴在下方文本框中,系统将自动校验格式、智能修正止盈止损并同步更新盘面信号。

未成交挂单详情 {{ openOrdersList.length }} 笔当前挂单

实时展示在 Bitget 交易所上待撮合成交的限价挂单

正在拉取 Bitget 实时未成交挂单...

当前暂无未成交挂单

标的交易对 方向/类型 挂单价格 委托数量(张) 预设止盈 预设止损 杠杆 挂单时间
{{ formatSymbol(order.symbol) }} USDT {{ (order.side === 'buy' || order.posSide === 'long') ? '🟢 开多 (BUY)' : '🔴 开空 (SELL)' }} ${{ formatPrice(order.price) }} {{ order.size }} {{ (order.presetStopSurplusPrice || order.presetTakeProfitPrice) ? ('$' + formatPrice(order.presetStopSurplusPrice || order.presetTakeProfitPrice)) : '--' }} {{ order.presetStopLossPrice ? ('$' + formatPrice(order.presetStopLossPrice)) : '--' }} {{ order.leverage || 20 }}x {{ order.cTime ? new Date(parseInt(order.cTime)).toLocaleTimeString() : '--' }}
💡 挂单撮合成交后将自动转入合约持仓并生成交易履历

合约交易与平仓订单记录 共 {{ tradesTotal }} 笔记录

展示由 GrokBot 自动执行的合约开平仓、锁利及移动止损历史流水

正在拉取历史成交记录...

当前暂无历史交易订单记录

标的交易对 方向/杠杆 开仓价 → 平仓价 保证金 / 规模 实盘盈亏 (USDT) 状态 开仓时间 平仓时间
{{ formatSymbol(t.symbol) }} USDT {{ (t.direction === 'buy' || t.direction === 'long' || t.pos_side === 'long') ? '🟢 多' : '🔴 空' }} {{ t.leverage || 20 }}x ${{ formatPrice(t.entry_price) }} {{ t.status === 'closed' ? ('$' + formatPrice(t.close_price || t.exit_price)) : '持仓中' }}
${{ (parseFloat(t.stake_amount) || 0).toFixed(2) }} USDT
{{ t.size || t.amount || '--' }} 张
{{ (parseFloat(t.profit_usdt || t.pnl) || 0) >= 0 ? '+' : '' }}${{ (parseFloat(t.profit_usdt || t.pnl) || 0).toFixed(2) }}
{{ (parseFloat(t.profit_pct || t.pnl_pct) || 0) >= 0 ? '+' : '' }}{{ (parseFloat(t.profit_pct || t.pnl_pct) || 0).toFixed(2) }}%
已平仓 持仓中 {{ t.opened_at || t.open_time || '--' }} {{ t.closed_at || t.close_time || '--' }}
第 {{ tradesPage }} 页 / 共 {{ Math.ceil(tradesTotal / tradesPerPage) || 1 }} 页