From efb1e8203e84edb94b9c762e92e52acb491a34b7 Mon Sep 17 00:00:00 2001 From: cloudQuant Date: Sun, 23 Aug 2026 17:02:02 +0800 Subject: [PATCH] docs(core): document the exchange key convention on BtApi --- bt_api_py/bt_api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bt_api_py/bt_api.py b/bt_api_py/bt_api.py index 4cf31237..3a7d7957 100644 --- a/bt_api_py/bt_api.py +++ b/bt_api_py/bt_api.py @@ -1,6 +1,11 @@ """ Integrate all exchange APIs using this BtApi class 通过 ExchangeRegistry 实现交易所的即插即用,新增交易所无需修改此文件 + +Exchange key convention (exchange_kwargs / get_tick dataname 前缀): +``EXCHANGE___MARKET_TYPE``, e.g. ``BINANCE___SPOT``、``CTP___FUTURE``。 +三下划线为保留分隔符;订阅数据名追加 symbol: +``EXCHANGE___MARKET_TYPE___SYMBOL``。 """ from __future__ import annotations