Ota chart console pro

From shaoxing-xie/etf-options-ai-assistant · View interactive version

Ota chart console pro is an AI agent skill from the GitHub repository shaoxing-xie/etf-options-ai-assistant. TradingView 对标二期图表研究台运维与验收规程:启动、健康检查、UI核查、常见报错定位(HEAD 501 / NaN / slice)、回退与冒烟脚本。

How to use this skill

Skill file

OTA:Chart Console Pro(二期)运行规程

何时使用

标准启动

cd <workspace-root>
source .venv/bin/activate
CHART_CONSOLE_PRO_PORT=8611 python apps/chart_console/api/server.py

若端口占用:

lsof -i :8611
kill <PID>

快速健康检查(顺序固定)

  1. curl -I http://127.0.0.1:8611/ 期望 200
  2. curl http://127.0.0.1:8611/api/health 期望 {"success": true}
  3. curl /api/ohlcv / curl /api/indicators / curl /api/backtest 至少返回 success=true
  4. (可选)L4 只读语义:curl 'http://127.0.0.1:8611/api/semantic/l4_valuation_context?stock_code=600519'、curl 'http://127.0.0.1:8611/api/semantic/l4_pe_ttm_percentile?stock_code=600519&window_years=5' — 首次请求可能触发落盘到 data/semantic/l4_*(来源 tool_l4_*);数值以工具 JSON 为准,勿手写复述。

二期 UI 验收要点

常见错误与处置

发布前脚本

python scripts/chart_console_phase2_smoke.py
python scripts/check_indicator_consistency.py

输出纪律

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.