修复web前端,增加openai

This commit is contained in:
dekun
2026-05-23 11:53:36 +08:00
parent 4439bedcb7
commit ada9478713
20 changed files with 335 additions and 355 deletions
+5 -5
View File
@@ -29,12 +29,12 @@ strategy_templates/ # 主站内嵌 panelsubnav、roll、trend 禁用
## 二、导航与页面
顶栏一项 **「策略交易」**(高亮含 `/strategy/trend``/strategy/roll`),页内子导航切换:
顶栏 **「策略交易」**`/strategy`:页内 **左右并列** 两张卡片(趋势回调 | 顺势加仓),布局与「实盘下单」双栏一致。旧链接 `/strategy/trend``/strategy/roll` 会自动跳转到 `/strategy`
| 路由 | 子 Tab | 说明 |
|------|--------|------|
| `/strategy/trend` | 趋势回调 | **币安 / Gate / OKX / gate_bot 四所均可**(预览、执行、自动补仓、程序止盈) |
| `/strategy/roll` | 顺势加仓 | **四所均可用**(须已有同向持仓),与实盘页同一布局 |
| 区域 | 说明 |
|------|------|
| 左栏 · 趋势回调 | **四所均可**(预览、执行、自动补仓、程序止盈) |
| 右栏 · 顺势加仓 | 须已有同向持仓;滚仓组/历史表在右栏内滚动 |
| `/trade` | 实盘下单 | 首仓、以损定仓、移动保本(不变) |
各所 `app.py` 注册 `@app.route("/strategy/trend|roll")``render_main_page(...)``install_strategy_trading` 仅注册滚仓 POST API。