From 1d6b4bbabaabd19141e780868ef631f20c754fcb Mon Sep 17 00:00:00 2001 From: "Y.M.Wong" <41416399+gamcing@users.noreply.github.com> Date: Mon, 27 Jul 2026 10:03:26 +0000 Subject: [PATCH] =?UTF-8?q?query=5Fall=5Flevel=5Ffinance=5Foptions?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0underlying:=20SSE.588000=20=E7=A7=91?= =?UTF-8?q?=E5=88=9B50ETF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tqsdk/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tqsdk/api.py b/tqsdk/api.py index 26f6fae1..4b74c66b 100644 --- a/tqsdk/api.py +++ b/tqsdk/api.py @@ -3280,6 +3280,7 @@ def query_all_level_finance_options(self, underlying_symbol, underlying_price, o * "SZSE.159915" 为深交所易方达创业板 ETF 期权标的 * "SZSE.159922" 为深交所嘉实中证 500 ETF 期权标的 * "SSE.510500" 为上交所南方中证 500 ETF 期权标的 + * "SSE.588000" 为上交所华夏科创 50 ETF 期权标的 underlying_price (float): [必填] 标的价格,该价格用户输入可以是任意值,例如合约最新价,最高价,开盘价等然后以该值去对比实值/虚值/平值期权 @@ -3337,7 +3338,7 @@ def query_all_level_finance_options(self, underlying_symbol, underlying_price, o if self._stock is False: raise Exception("期货行情系统(_stock = False)不支持当前接口调用") if underlying_symbol not in ["SSE.000300", "SSE.510050", "SSE.510300", "SZSE.159919", "SZSE.159915", "SZSE.159922", "SSE.510500", - "SSE.000016", "SSE.000852"]: + "SSE.000016", "SSE.000852", "SSE.588000"]: raise Exception("不支持的标的合约") if option_class not in ['CALL', 'PUT']: raise Exception("option_class 参数错误,option_class 必须是 'CALL' 或者 'PUT'")