Files
qihuo/docs/FEES.md
T
dekun 7b60f0dce5 Update documentation to match current product features.
Rewrite module docs for order monitor, CTP sync, and stats; remove obsolete simulated-position and UI descriptions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-26 02:08:01 +08:00

55 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 手续费与导航设置
## 手续费数据源
| 模式 | 说明 |
|------|------|
| **CTP 柜台**(推荐) | 连接 SimNow/实盘 CTP 后,查询柜台费率并缓存到 `fee_rates``source=ctp` |
| **本地 / AKShare** | `data/fee_rates.json` 或 AKShare 参考表 × 倍率,离线估算 |
### 计算公式
```
单边手续费 = 固定(元/手) × 手数 + 比例 × 成交价 × 合约乘数 × 手数
往返手续费 = 开仓费 + 平仓费(同日持仓用平今,否则平昨)
```
### 同步时机
1. 连接 CTP 成功后 — 后台自动同步主力合约费率
2. **手续费配置页** — 「从 CTP 同步费率」
3. 计算某品种时 — 缓存缺失则单品种查询
---
## 导航显示开关
**系统设置 → 导航显示** 可开关:
| key | 菜单 |
|-----|------|
| `fees` | 手续费配置 |
| `contract` | 品种简介 |
| `plans` | 开单计划 |
| `market` | 行情 K 线 |
| `strategy` | 策略交易 |
关闭后顶栏隐藏;直接访问 URL 会提示并跳转到 **下单监控**
始终显示:**下单监控**、关键位监控、交易记录与复盘、统计分析、系统设置。
设置保存在 `settings.nav_items`JSON)。
---
## 相关文件
| 文件 | 说明 |
|------|------|
| `fee_specs.py` | 费率计算 |
| `ctp_fee_sync.py` | CTP 同步 |
| `nav_settings.py` | 导航开关 |
| `vnpy_bridge.py` | CTP 连接 |
详见 [DEPLOY.md](./DEPLOY.md)、[TRADING.md](./TRADING.md)。