feat: 手续费仅CTP每日后台同步入库,前端只读展示

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 13:33:14 +08:00
parent de6815d481
commit e01c011df5
7 changed files with 240 additions and 214 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ def _collect_main_ths_codes() -> list[str]:
def sync_fees_from_ctp(mode: str, *, max_symbols: int = 80) -> tuple[int, str]:
"""CTP 已连接时,按主力合约查询手续费并写入 fee_ratessource=ctp)。"""
"""CTP 已连接时查询手续费并写入 fee_ratessource=ctp,覆盖同品种旧数据)。"""
bridge = get_bridge()
if not bridge.available():
return 0, "vnpy 未安装"