Files
AI-Trader/monitor_logs.sh
guaiwoluo2020 51b2f30748 feat: 添加前端界面和市场分析模块
- 新增 Vue 3 + Vuetify 前端界面
- 新增市场分析模块 (market/)
- 更新主服务器和路由
- 更新 MT5 EA 文件
- 添加 .gitignore 排除临时文件
2026-03-10 17:38:13 +08:00

30 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# 日志监控脚本 - 实时查看EA和后端服务的通信
echo "============================================================"
echo " EA与后端服务通信监控"
echo "============================================================"
echo ""
echo "监控内容:"
echo " - EA获取交易指令 (GET /get_trades)"
echo " - EA发送统计数据 (POST /send_statistics)"
echo " - 前端界面请求"
echo ""
echo "按 Ctrl+C 停止监控"
echo "============================================================"
echo ""
# 实时监控后端日志
tail -f /private/tmp/claude-501/-Users-wangxingxing--openclaw-workspace-lianghua/tasks/bpae1rf93.output | \
while read line; do
# 高亮EA请求
if echo "$line" | grep -q "GET /get_trades"; then
echo "🔴 [EA请求交易指令] $line"
elif echo "$line" | grep -q "POST /send_statistics"; then
echo "🟢 [EA发送统计数据] $line"
elif echo "$line" | grep -q "send_trade_instructions"; then
echo "🔵 [交易员下发指令] $line"
else
echo "$line"
fi
done