Files
sanguo_vnpy_v2/config/data_platform.yaml
T
claude_dev ff84b3d4b0 feat(live): D-3 sanguo实盘分支(影子下单)+D期设计文档
D-3 模式A影子下单(spec §5):
- bridge_client.py: QMT bridge HTTP客户端(urllib, X-Bridge-Token, 失败不抛返回None)
- live_orchestrator: _shadow_trades_to_bridge 当日成交POST bridge(默认enabled=false)
- persistence: paper_shadow_orders幂等表+save_shadow_order/is_trade_shadowed
- config: data_platform.yaml加live段, token走env(BRIDGE_TOKEN)
- to_bridge_code symbol转换与guess_exchange一致(2位前缀)
安全: enabled=false默认关+token走env+幂等防重复+影子失败不阻断live_step

docs: phase3d-live-trading-design.md(D期完整设计)
2026-07-11 00:03:46 +08:00

49 lines
1.5 KiB
YAML
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.
# config/data_platform.yaml
data_paths:
daily_dir: /volume1/stock/A股数据/日线数据/daily
raw_dir: /volume1/stock/A股数据/日线数据/raw
qfq_dir: /volume1/stock/A股数据/日线数据/qfq
minute_15_dir: /volume1/stock/minute_kline/15min
minute_15_qfq_dir: /volume1/stock/minute_kline/15min_qfq
minute_15_raw_dir: /volume1/stock/minute_kline/15min_raw
vnpy_db: /volume1/stock/sanguo_vnpy/data/quant_trading.db
stock_list: /volume1/stock/A股数据/stock_info/stock_basic_info_raw_20260326_113530.csv
data_sources:
daily:
- name: eastmoney
enabled: true
interval: 4.0
- name: baostock
enabled: true
interval: 0.0
timeout: 30
- name: tencent
enabled: true
interval: 0.0
minute_15:
- name: eastmoney
enabled: true
interval: 4.0
validation:
price_positive: true
ohlc_consistency: true
no_future_dates: true
performance:
request_interval: 0.3
max_retries: 3
fail_window: 100
fail_threshold: 0.8
# 资金占用成本归因(spec §195):年化无风险利率,每策略占用资金按此日扣归因到 PnL
risk_free_rate: 0.02
# 实盘集成(D期,spec §5)— 默认关闭,D-4a 联调再开
# bridge_token 走环境变量 BRIDGE_TOKEN,不写入 yaml(不进 git
live:
enabled: false # 总开关(false=影子分支整个跳过,live_step 行为不变)
bridge_url: https://bridge.mysanguo.top
shadow: true # 模式A影子下单(模拟撮合为准,信号同步POST bridge影子)