{"openapi":"3.1.0","info":{"title":"QuantSource API · 期货","description":"QuantSourceAPI 是 QuantSource 的 HTTP API 工具, 主要目的是使 QuantSource 的数据接口部署到服务器，从而让用户通过 HTTP 访问相关接口来获取所需要的数据","version":"0.1.0"},"paths":{"/api/public/futures_comex_inventory":{"get":{"tags":["期货"],"summary":"公开接口：futures_comex_inventory","description":"东方财富网-数据中心-期货期权-COMEX库存数据\nhttps://data.eastmoney.com/pmetal/comex/by.html\n:param symbol: choice of {\"黄金\", \"白银\"}\n:type symbol: str\n:return: COMEX库存数据\n:rtype: pandas.DataFrame","operationId":"public_futures_comex_inventory","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"黄金\"; choice of {\"黄金\", \"白银\"}","default":"黄金","title":"Symbol"},"description":"symbol=\"黄金\"; choice of {\"黄金\", \"白银\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_comm_info":{"get":{"tags":["期货"],"summary":"公开接口：futures_comm_info","description":"九期网-期货手续费\nhttps://www.9qihuo.com/qihuoshouxufei\n:param symbol: choice of {\"所有\", \"上海期货交易所\", \"大连商品交易所\", \"郑州商品交易所\", \"上海国际能源交易中心\", \"中国金融期货交易所\", \"广州期货交易所\"}\n:type symbol: str\n:return: 期货手续费\n:rtype: pandas.DataFrame","operationId":"public_futures_comm_info","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"所有\"; choice of {\"所有\", \"上海期货交易所\", \"大连商品交易所\", \"郑州商品交易所\", \"上海国际能源交易中心\", \"中国金融期货交易所\", \"广州期货交易所\"}","default":"所有","title":"Symbol"},"description":"symbol=\"所有\"; choice of {\"所有\", \"上海期货交易所\", \"大连商品交易所\", \"郑州商品交易所\", \"上海国际能源交易中心\", \"中国金融期货交易所\", \"广州期货交易所\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_comm_js":{"get":{"tags":["期货"],"summary":"公开接口：futures_comm_js","description":"金十财经-期货手续费\nhttps://www.jin10.com/\n:param date: 日期；格式为 YYYYMMDD，例如 \"20250213\"\n:type date: str\n:return: 期货手续费数据\n:rtype: pandas.DataFrame","operationId":"public_futures_comm_js","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20260213\"；日期格式为 YYYYMMDD","default":"20260213","title":"Date"},"description":"date=\"20260213\"；日期格式为 YYYYMMDD"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_contract_detail":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_detail","description":"查询期货合约详情\nhttps://finance.sina.com.cn/futures/quotes/V2101.shtml\n:param symbol: 合约\n:type symbol: str\n:return: 期货合约详情\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_detail","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol='AP2101'；请参考**新浪连续合约品种一览表**，也可通过 **qs.futures_display_main_sina()** 获取","default":"AP2101","title":"Symbol"},"description":"symbol='AP2101'；请参考**新浪连续合约品种一览表**，也可通过 **qs.futures_display_main_sina()** 获取"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_contract_detail_em":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_detail_em","description":"查询期货合约详情\nhttps://quote.eastmoney.com/qihuo/v2602F.html\n:param symbol: 合约\n:type symbol: str\n:return: 期货合约详情\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_detail_em","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol='v2602F'；请参考东方财富的期货品种标识：https://quote.eastmoney.com/center/futures.html","default":"v2602F","title":"Symbol"},"description":"symbol='v2602F'；请参考东方财富的期货品种标识：https://quote.eastmoney.com/center/futures.html"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_contract_info_cffex":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_info_cffex","description":"中国金融期货交易所-数据-交易参数\nhttp://www.gfex.com.cn/gfex/hyxx/ywcs.shtml\n:param date: 查询日期\n:type date: str\n:return: 交易参数汇总查询\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_info_cffex","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20240228\"；交易日","default":"20240228","title":"Date"},"description":"date=\"20240228\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_contract_info_czce":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_info_czce","description":"郑州商品交易所-交易数据-参考数据\nhttp://www.czce.com.cn/cn/jysj/cksj/H770322index_1.htm\n:param date: 查询日期\n:type date: str\n:return: 交易参数汇总查询\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_info_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20240228\"；交易日","default":"20240228","title":"Date"},"description":"date=\"20240228\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_contract_info_dce":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_info_dce","description":"大连商品交易所-数据中心-业务数据-交易参数-合约信息\nhttp://www.dce.com.cn/dce/channel/list/180.html\n:return: 交易参数汇总查询\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_info_dce","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_contract_info_gfex":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_info_gfex","description":"广州期货交易所-业务/服务-合约信息\nhttp://www.gfex.com.cn/gfex/hyxx/ywcs.shtml\n:return: 交易参数汇总查询\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_info_gfex","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_contract_info_ine":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_info_ine","description":"上海国际能源交易中心-业务指南-交易参数汇总（期货）\nhttps://www.ine.cn/bourseService/summary/?name=currinstrumentprop\n:param date: 查询日期；交易日\n:type date: str\n:return: 交易参数汇总查询\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_info_ine","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20241129\"；交易日","default":"20241129","title":"Date"},"description":"date=\"20241129\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_contract_info_shfe":{"get":{"tags":["期货"],"summary":"公开接口：futures_contract_info_shfe","description":"上海期货交易所-交易所服务-业务数据-交易参数汇总查询\nhttps://tsite.shfe.com.cn/bourseService/businessdata/summaryinquiry/\n:param date: 查询日期；交易日\n:type date: str\n:return: 交易参数汇总查询\n:rtype: pandas.DataFrame","operationId":"public_futures_contract_info_shfe","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20240513\"；交易日","default":"20240513","title":"Date"},"description":"date=\"20240513\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_dce_position_rank":{"get":{"tags":["期货"],"summary":"公开接口：futures_dce_position_rank","description":"大连商品交易所-每日持仓排名-具体合约\nhttp://www.dce.com.cn/dalianshangpin/xqsj/tjsj26/rtj/rcjccpm/index.html\n:param date: 指定交易日；e.g., \"20200511\"\n:type date: str\n:param vars_list: 品种列表\n:type vars_list: list\n:return: 指定日期的持仓排名数据\n:rtype: pandas.DataFrame","operationId":"public_futures_dce_position_rank","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20200511\"；指定交易日，该数据接口可以获取从 2000 年开始的数据，20160104 由于交易所数据问题，返回为空可以调用 **futures_dce_position_rank_other** 来返回数据","default":"20160919","title":"Date"},"description":"date=\"20200511\"；指定交易日，该数据接口可以获取从 2000 年开始的数据，20160104 由于交易所数据问题，返回为空可以调用 **futures_dce_position_rank_other** 来返回数据"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"string","description":"vars_list=cons.contract_symbols；指定品种，比如：[\"C\", \"CS\"]","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"vars_list=cons.contract_symbols；指定品种，比如：[\"C\", \"CS\"]"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_dce_position_rank_other":{"get":{"tags":["期货"],"summary":"公开接口：futures_dce_position_rank_other","description":"大连商品交易所-每日持仓排名-具体合约-补充\nhttp://www.dce.com.cn/dalianshangpin/xqsj/tjsj26/rtj/rcjccpm/index.html\n:param date: 交易日\n:type date: str\n:return: 合约具体名称列表\n:rtype: list","operationId":"public_futures_dce_position_rank_other","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_dce_position_rank_other 的 date 参数","default":"20160104","title":"Date"},"description":"futures_dce_position_rank_other 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_delivery_czce":{"get":{"tags":["期货"],"summary":"公开接口：futures_delivery_czce","description":"郑州商品交易所-月度交割查询\nhttp://www.czce.com.cn/cn/jysj/ydjgcx/H770316index_1.htm\n:param date: 年月日\n:type date: str\n:return: 郑州商品交易所-月度交割查询\n:rtype: pandas.DataFrame","operationId":"public_futures_delivery_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20210112\"；交易日","default":"20210112","title":"Date"},"description":"date=\"20210112\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_delivery_dce":{"get":{"tags":["期货"],"summary":"公开接口：futures_delivery_dce","description":"大连商品交易所-交割统计\nhttp://www.dce.com.cn/dalianshangpin/xqsj/tjsj26/jgtj/jgsj/index.html\n:param date: 交割日期\n:type date: str\n:return: 大连商品交易所-交割统计\n:rtype: pandas.DataFrame","operationId":"public_futures_delivery_dce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"202312\"；交易月份","default":"202312","title":"Date"},"description":"date=\"202312\"；交易月份"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_delivery_match_czce":{"get":{"tags":["期货"],"summary":"公开接口：futures_delivery_match_czce","description":"郑州商品交易所-交割配对\nhttp://www.czce.com.cn/cn/jysj/jgpd/H770308index_1.htm\n:param date: 年月日\n:type date: str\n:return: 郑州商品交易所-交割配对\n:rtype: pandas.DataFrame","operationId":"public_futures_delivery_match_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20210106\"；交易日","default":"20210106","title":"Date"},"description":"date=\"20210106\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_delivery_match_dce":{"get":{"tags":["期货"],"summary":"公开接口：futures_delivery_match_dce","description":"大连商品交易所-交割配对表\nhttp://www.dce.com.cn/dalianshangpin/xqsj/tjsj26/jgtj/jgsj/index.html\n:param symbol: 交割品种\n:type symbol: str\n:return: 大连商品交易所-交割配对表\n:rtype: pandas.DataFrame","operationId":"public_futures_delivery_match_dce","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"a\"；交易品种","default":"a","title":"Symbol"},"description":"symbol=\"a\"；交易品种"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_delivery_shfe":{"get":{"tags":["期货"],"summary":"公开接口：futures_delivery_shfe","description":"上海期货交易所-交割情况表\nhttps://tsite.shfe.com.cn/statements/dataview.html?paramid=kx\n注意：日期 -> 月度统计 -> 下拉到交割情况表\n:param date: 年月日\n:type date: str\n:return: 上海期货交易所-交割情况表\n:rtype: pandas.DataFrame","operationId":"public_futures_delivery_shfe","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"202312\"；交易月份","default":"202312","title":"Date"},"description":"date=\"202312\"；交易月份"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_fees_info":{"get":{"tags":["期货"],"summary":"公开接口：futures_fees_info","description":"openctp 期货交易费用参照表\nhttp://openctp.cn/fees.html\n:return: 期货交易费用参照表\n:rtype: pandas.DataFrame","operationId":"public_futures_fees_info","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_foreign_commodity_realtime":{"get":{"tags":["期货"],"summary":"公开接口：futures_foreign_commodity_realtime","description":"新浪-外盘期货-行情数据\nhttps://finance.sina.com.cn/money/future/hf.html\n:param symbol: 通过调用 qs.futures_hq_subscribe_exchange_symbol() 函数来获取\n:type symbol: list or str\n:return: 行情数据\n:rtype: pandas.DataFrame","operationId":"public_futures_foreign_commodity_realtime","parameters":[{"name":"symbol","in":"query","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"需要订阅的合约代码；调用 **qs.futures_hq_subscribe_exchange_symbol()** 获取字段及代码对应表","title":"Symbol"},"description":"需要订阅的合约代码；调用 **qs.futures_hq_subscribe_exchange_symbol()** 获取字段及代码对应表"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_foreign_commodity_subscribe_exchange_symbol":{"get":{"tags":["期货"],"summary":"公开接口：futures_foreign_commodity_subscribe_exchange_symbol","description":"需要订阅的行情的代码\nhttps://finance.sina.com.cn/money/future/hf.html\n:return: 需要订阅的行情的代码\n:rtype: list","operationId":"public_futures_foreign_commodity_subscribe_exchange_symbol","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_foreign_detail":{"get":{"tags":["期货"],"summary":"公开接口：futures_foreign_detail","description":"foreign futures contract detail data\n:param symbol: futures symbol, you can get it from qs.futures_hq_subscribe_exchange_symbol function\n:type symbol: str\n:return: contract detail\n:rtype: pandas.DataFrame","operationId":"public_futures_foreign_detail","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"ZSD\"；外盘期货的 **symbol** 可以通过 **qs.futures_hq_subscribe_exchange_symbol()** 获取","default":"ZSD","title":"Symbol"},"description":"symbol=\"ZSD\"；外盘期货的 **symbol** 可以通过 **qs.futures_hq_subscribe_exchange_symbol()** 获取"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_foreign_hist":{"get":{"tags":["期货"],"summary":"公开接口：futures_foreign_hist","description":"外盘期货-历史行情数据-日频率\nhttps://finance.sina.com.cn/money/future/hf.html\n:param symbol: 外盘期货代码，可以通过 qs.futures_foreign_commodity_subscribe_exchange_symbol() 来获取所有品种代码\n:type symbol: str\n:return: 历史行情数据-日频率\n:rtype: pandas.DataFrame","operationId":"public_futures_foreign_hist","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"ZSD\"；外盘期货的 **symbol** 可以通过 **qs.futures_hq_subscribe_exchange_symbol()** 获取","default":"ZSD","title":"Symbol"},"description":"symbol=\"ZSD\"；外盘期货的 **symbol** 可以通过 **qs.futures_hq_subscribe_exchange_symbol()** 获取"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_gfex_position_rank":{"get":{"tags":["期货"],"summary":"公开接口：futures_gfex_position_rank","description":"广州期货交易所-日成交持仓排名\nhttp://www.gfex.com.cn/gfex/rcjccpm/hqsj_tjsj.shtml\n:param date: 开始日期；广州期货交易所的日成交持仓排名从 20231110 开始\n:type date: str\n:param vars_list: 商品代码列表\n:type vars_list: list\n:return: 日成交持仓排名\n:rtype: pandas.DataFrame","operationId":"public_futures_gfex_position_rank","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20231113\"；指定交易日，该数据接口可以获取从 20231110 开始的日成交持仓排名数据","default":"20231113","title":"Date"},"description":"date=\"20231113\"；指定交易日，该数据接口可以获取从 20231110 开始的日成交持仓排名数据"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"vars_list=None；指定品种，比如：['SI', 'LC']","title":"Vars List"},"description":"vars_list=None；指定品种，比如：['SI', 'LC']"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_gfex_warehouse_receipt":{"get":{"tags":["期货"],"summary":"公开接口：futures_gfex_warehouse_receipt","description":"广州期货交易所-行情数据-仓单日报\nhttp://www.gfex.com.cn/gfex/cdrb/hqsj_tjsj.shtml\n:param date: 交易日，e.g., \"20240122\"\n:type date: str\n:return: 指定日期的仓单日报数据\n:rtype: dict","operationId":"public_futures_gfex_warehouse_receipt","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20240122\"；交易日","default":"20240122","title":"Date"},"description":"date=\"20240122\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_global_hist_em":{"get":{"tags":["期货"],"summary":"公开接口：futures_global_hist_em","description":"东方财富网-行情中心-期货市场-国际期货-历史行情数据\nhttps://quote.eastmoney.com/globalfuture/HG25J.html\n:param symbol: 品种代码；可以通过 qs.futures_global_spot_em() 来获取所有可获取历史行情数据的品种代码\n:type symbol: str\n:return: 历史行情数据\n:rtype: pandas.DataFrame","operationId":"public_futures_global_hist_em","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"HG00Y\"；品种代码；可以通过 qs.futures_global_spot_em() 来获取所有可获取历史行情数据的品种代码","default":"HG00Y","title":"Symbol"},"description":"symbol=\"HG00Y\"；品种代码；可以通过 qs.futures_global_spot_em() 来获取所有可获取历史行情数据的品种代码"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_global_spot_em":{"get":{"tags":["期货"],"summary":"公开接口：futures_global_spot_em","description":"东方财富网-行情中心-期货市场-国际期货\nhttps://quote.eastmoney.com/center/gridlist.html#futures_global\n:return: 行情数据\n:rtype: pandas.DataFrame","operationId":"public_futures_global_spot_em","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_hist_daily_cffex":{"get":{"tags":["期货"],"summary":"公开接口：futures_hist_daily_cffex","description":"中国金融期货交易所-交易所日交易数据\nhttp://www.cffex.com.cn/cn/rtj.html\n:param date: 交易日\n:type date: str\n:return: 交易所日交易数据\n:rtype: pandas.DataFrame","operationId":"public_futures_hist_daily_cffex","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_hist_daily_cffex 的 date 参数","default":"20260403","title":"Date"},"description":"futures_hist_daily_cffex 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_hist_em":{"get":{"tags":["期货"],"summary":"公开接口：futures_hist_em","description":"东方财富网-期货行情-行情数据\nhttps://qhweb.eastmoney.com/quote\n:param symbol: 期货代码\n:type symbol: str\n:param period: choice of {'daily', 'weekly', 'monthly'}\n:type period: str\n:param start_date: 开始日期\n:type start_date: str\n:param end_date: 结束日期\n:type end_date: str\n:return: 行情数据\n:rtype: pandas.DataFrame","operationId":"public_futures_hist_em","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"热卷主连\"；具体合约可以通过 qs.futures_hist_table_em() 获取所有当期能获取数据的合约表","default":"热卷主连","title":"Symbol"},"description":"symbol=\"热卷主连\"；具体合约可以通过 qs.futures_hist_table_em() 获取所有当期能获取数据的合约表"},{"name":"period","in":"query","required":false,"schema":{"type":"string","description":"period=\"daily\"; choice of {\"daily\", \"weekly\", \"monthly\"}","default":"daily","title":"Period"},"description":"period=\"daily\"; choice of {\"daily\", \"weekly\", \"monthly\"}"},{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"start_date=\"19900101\";","default":"19900101","title":"Start Date"},"description":"start_date=\"19900101\";"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"end_date=\"20500101\";","default":"20500101","title":"End Date"},"description":"end_date=\"20500101\";"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_hist_table_em":{"get":{"tags":["期货"],"summary":"公开接口：futures_hist_table_em","description":"东方财富网-期货行情-交易所品种对照表\nhttps://quote.eastmoney.com/qihuo/al2505.html\n:return: 交易所品种对照表\n:rtype: pandas.DataFrame","operationId":"public_futures_hist_table_em","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_hog_core":{"get":{"tags":["期货"],"summary":"公开接口：futures_hog_core","description":"玄田数据-核心数据\nhttps://zhujia.zhuwang.com.cn\n:param symbol: choice of {\"外三元\", \"内三元\", \"土杂猪\"}\n:type symbol: str\n:return: 玄田数据-核心数据\n:rtype: pandas.DataFrame","operationId":"public_futures_hog_core","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"外三元\"; choice of {\"外三元\", \"内三元\", \"土杂猪\"}","default":"外三元","title":"Symbol"},"description":"symbol=\"外三元\"; choice of {\"外三元\", \"内三元\", \"土杂猪\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_hog_cost":{"get":{"tags":["期货"],"summary":"公开接口：futures_hog_cost","description":"玄田数据-成本维度\nhttps://zhujia.zhuwang.com.cn\n:param symbol: choice of {\"玉米\", \"豆粕\", \"二元母猪价格\", \"仔猪价格\"}\n:type symbol: str\n:return: 玄田数据-成本维度\n:rtype: pandas.DataFrame","operationId":"public_futures_hog_cost","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"玉米\"; choice of {\"玉米\", \"豆粕\", \"二元母猪价格\", \"仔猪价格\"}","default":"玉米","title":"Symbol"},"description":"symbol=\"玉米\"; choice of {\"玉米\", \"豆粕\", \"二元母猪价格\", \"仔猪价格\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_hog_supply":{"get":{"tags":["期货"],"summary":"公开接口：futures_hog_supply","description":"玄田数据-供应维度\nhttps://zhujia.zhuwang.com.cn\n:param symbol: choice of {\"猪肉批发价\", \"储备冻猪肉\", \"饲料原料数据\", \"白条肉\",\n\"生猪产能\", \"育肥猪\", \"肉类价格指数\", \"猪粮比价\"}\n:type symbol: str\n:return: 玄田数据-供应维度\n:rtype: pandas.DataFrame","operationId":"public_futures_hog_supply","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"玉米\"; choice of {\"猪肉批发价\", \"储备冻猪肉\", \"饲料原料数据\", \"白条肉\", \"生猪产能\", \"育肥猪\", \"肉类价格指数\", \"猪粮比价\"}","default":"猪肉批发价","title":"Symbol"},"description":"symbol=\"玉米\"; choice of {\"猪肉批发价\", \"储备冻猪肉\", \"饲料原料数据\", \"白条肉\", \"生猪产能\", \"育肥猪\", \"肉类价格指数\", \"猪粮比价\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_hold_pos_sina":{"get":{"tags":["期货"],"summary":"公开接口：futures_hold_pos_sina","description":"新浪财经-期货-成交持仓\nhttps://vip.stock.finance.sina.com.cn/q/view/vFutures_Positions_cjcc.php\n:param symbol: choice of {\"成交量\", \"多单持仓\", \"空单持仓\"}\n:type symbol: str\n:param contract: 期货合约\n:type contract: str\n:param date: 查询日期\n:type date: str\n:return: 成交持仓\n:rtype: pandas.DataFrame","operationId":"public_futures_hold_pos_sina","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"成交量\"; choice of {\"成交量\", \"多单持仓\", \"空单持仓\"}","default":"成交量","title":"Symbol"},"description":"symbol=\"成交量\"; choice of {\"成交量\", \"多单持仓\", \"空单持仓\"}"},{"name":"contract","in":"query","required":false,"schema":{"type":"string","description":"contract=\"OI2501\"；只限于商品期货","default":"OI2501","title":"Contract"},"description":"contract=\"OI2501\"；只限于商品期货"},{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20240223\"","default":"20240223","title":"Date"},"description":"date=\"20240223\""}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_hq_subscribe_exchange_symbol":{"get":{"tags":["期货"],"summary":"公开接口：futures_hq_subscribe_exchange_symbol","description":"将品种字典转化为 pandas.DataFrame\nhttps://finance.sina.com.cn/money/future/hf.html\n:return: 品种对应表\n:rtype: pandas.DataFrame","operationId":"public_futures_hq_subscribe_exchange_symbol","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_index_ccidx":{"get":{"tags":["期货"],"summary":"公开接口：futures_index_ccidx","description":"中证商品指数-商品指数-日频率\nhttp://www.ccidx.com/index.html\n:param symbol: choice of {\"中证商品期货指数\", \"中证商品期货价格指数\"}\n:type symbol: str\n:return: 商品指数-日频率\n:rtype: pandas.DataFrame","operationId":"public_futures_index_ccidx","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"中证商品期货指数\"; choice of {\"中证商品期货指数\", \"中证商品期货价格指数\", }","default":"中证商品期货指数","title":"Symbol"},"description":"symbol=\"中证商品期货指数\"; choice of {\"中证商品期货指数\", \"中证商品期货价格指数\", }"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_inventory_99":{"get":{"tags":["期货"],"summary":"公开接口：futures_inventory_99","description":"99 期货网-大宗商品库存数据\nhttps://www.99qh.com/data/stockIn?productId=12\n:param symbol: 交易所对应的具体品种；如：大连商品交易所的 豆一\n:type symbol: str\n:return: 大宗商品库存数据\n:rtype: pandas.DataFrame","operationId":"public_futures_inventory_99","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol='豆一'；交易所对应的具体品种中文名称或者英文代码；如：大连商品交易所的豆一；具体品种查询：https://www.99qh.com/data/stockIn?productId=61","default":"豆一","title":"Symbol"},"description":"symbol='豆一'；交易所对应的具体品种中文名称或者英文代码；如：大连商品交易所的豆一；具体品种查询：https://www.99qh.com/data/stockIn?productId=61"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_inventory_em":{"get":{"tags":["期货"],"summary":"公开接口：futures_inventory_em","description":"东方财富网-数据中心-期货库存数据\nhttps://data.eastmoney.com/ifdata/kcsj.html\n:param symbol: 支持品种代码和中文名称，中文名称参见：https://data.eastmoney.com/ifdata/kcsj.html\n:type symbol: str\n:return: 指定品种的库存数据\n:rtype: pandas.DataFrame","operationId":"public_futures_inventory_em","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"A\"；支持品种代码和中文名称，中文名称参见：https://data.eastmoney.com/ifdata/kcsj.html","default":"a","title":"Symbol"},"description":"symbol=\"A\"；支持品种代码和中文名称，中文名称参见：https://data.eastmoney.com/ifdata/kcsj.html"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_main_sina":{"get":{"tags":["期货"],"summary":"公开接口：futures_main_sina","description":"新浪财经-期货-主力连续日数据\nhttps://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_1\n:param symbol: 通过 qs.futures_display_main_sina() 函数获取 symbol\n:type symbol: str\n:param start_date: 开始时间\n:type start_date: str\n:param end_date: 结束时间\n:type end_date: str\n:return: 主力连续日数据\n:rtype: pandas.DataFrame","operationId":"public_futures_main_sina","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"IF0\"；请参考 **新浪连续合约品种一览表**，也可通过 **qs.futures_display_main_sina()** 获取","default":"V0","title":"Symbol"},"description":"symbol=\"IF0\"；请参考 **新浪连续合约品种一览表**，也可通过 **qs.futures_display_main_sina()** 获取"},{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"start_date=\"19900101\";","default":"19900101","title":"Start Date"},"description":"start_date=\"19900101\";"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"end_date=\"22220101\";","default":"22220101","title":"End Date"},"description":"end_date=\"22220101\";"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_news_shmet":{"get":{"tags":["期货"],"summary":"公开接口：futures_news_shmet","description":"上海金属网-快讯\nhttps://www.shmet.com/newsFlash/newsFlash.html?searchKeyword=\n:param symbol: choice of {\"全部\", \"要闻\", \"VIP\", \"财经\", \"铜\", \"铝\", \"铅\", \"锌\", \"镍\", \"锡\", \"贵金属\", \"小金属\"}\n:type symbol: str\n:return: 上海金属网-快讯\n:rtype: pandas.DataFrame","operationId":"public_futures_news_shmet","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"全部\"; choice of {\"全部\", \"要闻\", \"VIP\", \"财经\", \"铜\", \"铝\", \"铅\", \"锌\", \"镍\", \"锡\", \"贵金属\", \"小金属\"}","default":"全部","title":"Symbol"},"description":"symbol=\"全部\"; choice of {\"全部\", \"要闻\", \"VIP\", \"财经\", \"铜\", \"铝\", \"铅\", \"锌\", \"镍\", \"锡\", \"贵金属\", \"小金属\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_rule":{"get":{"tags":["期货"],"summary":"公开接口：futures_rule","description":"国泰君安期货-交易日历数据表\nhttps://www.gtjaqh.com/pc/calendar.html\n:param date: 需要指定为交易日，且是近期的日期\n:type date: str\n:return: 交易日历数据\n:rtype: pandas.DataFrame","operationId":"public_futures_rule","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20231205\"；需要指定为交易日，且是近期的日期","default":"20231205","title":"Date"},"description":"date=\"20231205\"；需要指定为交易日，且是近期的日期"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settle":{"get":{"tags":["期货"],"summary":"公开接口：futures_settle","description":"期货交易所结算参数\n:param date: 结算日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:param market: 交易所代码：CFFEX-中金所，CZCE-郑商所，SHFE-上期所，DCE-大商所，INE-上能中心，GFEX-广期所\n:type market: str\n:return: 结算参数数据（统一格式）\n:rtype: pandas.DataFrame","operationId":"public_futures_settle","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20250117\"；结算参数日期，默认为当前交易日","default":"20260119","title":"Date"},"description":"date=\"20250117\"；结算参数日期，默认为当前交易日"},{"name":"market","in":"query","required":false,"schema":{"type":"string","description":"market=\"CFFEX\"; choice of {\"CFFEX\", \"INE\", \"CZCE\", \"SHFE\", \"GFEX\"}","default":"CFFEX","title":"Market"},"description":"market=\"CFFEX\"; choice of {\"CFFEX\", \"INE\", \"CZCE\", \"SHFE\", \"GFEX\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settle_cffex":{"get":{"tags":["期货"],"summary":"公开接口：futures_settle_cffex","description":"中国金融期货交易所-结算参数\nhttp://www.cffex.com.cn/jscs/\n:param date: 结算参数日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 结算参数数据\n:rtype: pandas.DataFrame","operationId":"public_futures_settle_cffex","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_settle_cffex 的 date 参数","default":"20260119","title":"Date"},"description":"futures_settle_cffex 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settle_czce":{"get":{"tags":["期货"],"summary":"公开接口：futures_settle_czce","description":"郑州商品交易所-结算参数\nhttp://www.czce.com.cn/cn/jysj/jscs/H077003003index_1.htm\n:param date: 结算参数日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 结算参数数据\n:rtype: pandas.DataFrame","operationId":"public_futures_settle_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_settle_czce 的 date 参数","default":"20260119","title":"Date"},"description":"futures_settle_czce 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settle_gfex":{"get":{"tags":["期货"],"summary":"公开接口：futures_settle_gfex","description":"广州期货交易所-结算参数\nhttp://www.gfex.com.cn/gfex/rjycs/ywcs.shtml\n:param date: 结算参数日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 结算参数数据\n:rtype: pandas.DataFrame","operationId":"public_futures_settle_gfex","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_settle_gfex 的 date 参数","default":"20260119","title":"Date"},"description":"futures_settle_gfex 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settle_ine":{"get":{"tags":["期货"],"summary":"公开接口：futures_settle_ine","description":"上海国际能源交易中心-结算参数\nhttps://www.ine.cn/reports/businessdata/prmsummary/\n:param date: 结算参数日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 结算参数数据\n:rtype: pandas.DataFrame","operationId":"public_futures_settle_ine","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_settle_ine 的 date 参数","default":"20260119","title":"Date"},"description":"futures_settle_ine 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settle_shfe":{"get":{"tags":["期货"],"summary":"公开接口：futures_settle_shfe","description":"上海期货交易所-结算参数\nhttps://www.shfe.com.cn/reports/tradedata/dailyandweeklydata/\n:param date: 结算参数日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 结算参数数据\n:rtype: pandas.DataFrame","operationId":"public_futures_settle_shfe","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_settle_shfe 的 date 参数","default":"20260119","title":"Date"},"description":"futures_settle_shfe 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_settlement_price_sgx":{"get":{"tags":["期货"],"summary":"公开接口：futures_settlement_price_sgx","description":"新加坡交易所-衍生品-历史数据-历史结算价格\nhttps://www.sgx.com/zh-hans/research-education/derivatives\n:param date: 交易日\n:type date: str\n:return: 所有期货品种的在指定交易日的历史结算价格\n:rtype: pandas.DataFrame","operationId":"public_futures_settlement_price_sgx","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20231107\"；交易日","default":"20231107","title":"Date"},"description":"date=\"20231107\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_shfe_warehouse_receipt":{"get":{"tags":["期货"],"summary":"公开接口：futures_shfe_warehouse_receipt","description":"上海期货交易所指定交割仓库期货仓单日报\nhttps://www.shfe.com.cn/reports/tradedata/dailyandweeklydata/\n:param date: 交易日，e.g., \"20260924\"\n:type date: str\n:return: 指定日期的仓单日报数据\n:rtype: dict","operationId":"public_futures_shfe_warehouse_receipt","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20260924\"；交易日","default":"20260924","title":"Date"},"description":"date=\"20260924\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_spot_price":{"get":{"tags":["期货"],"summary":"公开接口：futures_spot_price","description":"指定交易日大宗商品现货价格及相应基差\nhttps://www.100ppi.com/sf/day-2017-09-12.html\n:param date: 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date 对象；为空时为当天\n:param vars_list: 合约品种如 RB、AL 等列表 为空时为所有商品\n:return: pandas.DataFrame\n展期收益率数据：\nvar              商品品种                     string\nsp               现货价格                     float\nnear_symbol      临近交割合约                  string\nnear_price       临近交割合约结算价             float\ndom_symbol       主力合约                     string\ndom_price        主力合约结算价                float\nnear_basis       临近交割合约相对现货的基差      float\ndom_basis        主力合约相对现货的基差         float\nnear_basis_rate  临近交割合约相对现货的基差率    float\ndom_basis_rate   主力合约相对现货的基差率       float\ndate             日期                         string YYYYMMDD","operationId":"public_futures_spot_price","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_spot_price 的 date 参数","default":"20240430","title":"Date"},"description":"futures_spot_price 的 date 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"futures_spot_price 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"futures_spot_price 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_spot_price_daily":{"get":{"tags":["期货"],"summary":"公开接口：futures_spot_price_daily","description":"指定时间段内大宗商品现货价格及相应基差\nhttps://www.100ppi.com/sf/\n:param start_day: str 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象；默认为当天\n:param end_day: str 结束数据 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象；默认为当天\n:param vars_list: list 合约品种如 [RB, AL]；默认参数为所有商品\n:return: 基差\n:rtype: pandas.DataFrame\n展期收益率数据：\nvar               商品品种                      string\nsp                现货价格                      float\nnear_symbol       临近交割合约                  string\nnear_price        临近交割合约结算价             float\ndom_symbol        主力合约                      string\ndom_price         主力合约结算价                 float\nnear_basis        临近交割合约相对现货的基差      float\ndom_basis         主力合约相对现货的基差          float\nnear_basis_rate   临近交割合约相对现货的基差率    float\ndom_basis_rate    主力合约相对现货的基差率        float\ndate              日期                          string YYYYMMDD","operationId":"public_futures_spot_price_daily","parameters":[{"name":"start_day","in":"query","required":false,"schema":{"type":"string","description":"futures_spot_price_daily 的 start_day 参数","default":"20210201","title":"Start Day"},"description":"futures_spot_price_daily 的 start_day 参数"},{"name":"end_day","in":"query","required":false,"schema":{"type":"string","description":"futures_spot_price_daily 的 end_day 参数","default":"20210208","title":"End Day"},"description":"futures_spot_price_daily 的 end_day 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"futures_spot_price_daily 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"futures_spot_price_daily 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_spot_price_previous":{"get":{"tags":["期货"],"summary":"公开接口：futures_spot_price_previous","description":"具体交易日大宗商品现货价格及相应基差\nhttps://www.100ppi.com/sf/day-2017-09-12.html\n:param date: 交易日；历史日期\n:type date: str\n:return: 现货价格及相应基差\n:rtype: pandas.DataFrame","operationId":"public_futures_spot_price_previous","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"futures_spot_price_previous 的 date 参数","default":"20240430","title":"Date"},"description":"futures_spot_price_previous 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_spot_stock":{"get":{"tags":["期货"],"summary":"公开接口：futures_spot_stock","description":"东方财富网-数据中心-现货与股票\nhttps://data.eastmoney.com/ifdata/xhgp.html\n:param symbol: choice of {'能源', '化工', '塑料', '纺织', '有色', '钢铁', '建材', '农副'}\n:type symbol: str\n:return: 现货与股票上下游对应数据\n:rtype: pandas.DataFrame","operationId":"public_futures_spot_stock","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"能源\"; choice of {'能源', '化工', '塑料', '纺织', '有色', '钢铁', '建材', '农副'}","default":"能源","title":"Symbol"},"description":"symbol=\"能源\"; choice of {'能源', '化工', '塑料', '纺织', '有色', '钢铁', '建材', '农副'}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_spot_sys":{"get":{"tags":["期货"],"summary":"公开接口：futures_spot_sys","description":"生意社-商品与期货-现期图\nhttps://www.100ppi.com/sf/792.html\n:param symbol: 期货品种\n:type symbol: str\n:param indicator: 市场价格；choice of {\"市场价格\", \"基差率\", \"主力基差\"}\n:type indicator: str\n:return: pandas.DataFrame\n:rtype: dict","operationId":"public_futures_spot_sys","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"铜\"；期货品种","default":"铜","title":"Symbol"},"description":"symbol=\"铜\"；期货品种"},{"name":"indicator","in":"query","required":false,"schema":{"type":"string","description":"futures_spot_sys 的 indicator 参数","default":"市场价格","title":"Indicator"},"description":"futures_spot_sys 的 indicator 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_stock_shfe_js":{"get":{"tags":["期货"],"summary":"公开接口：futures_stock_shfe_js","description":"金十财经-上海期货交易所指定交割仓库库存周报\nhttps://datacenter.jin10.com/reportType/dc_shfe_weekly_stock\n:param date: 交易日；库存周报只在每周的最后一个交易日公布数据\n:type date: str\n:return: 库存周报\n:rtype: pandas.Series","operationId":"public_futures_stock_shfe_js","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20240419\"；库存周报只在每周的最后一个交易日公布数据","default":"20240419","title":"Date"},"description":"date=\"20240419\"；库存周报只在每周的最后一个交易日公布数据"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_symbol_mark":{"get":{"tags":["期货"],"summary":"公开接口：futures_symbol_mark","description":"期货的品种和代码映射\nhttps://vip.stock.finance.sina.com.cn/quotes_service/view/js/qihuohangqing.js\n:return: 期货的品种和代码映射\n:rtype: pandas.DataFrame","operationId":"public_futures_symbol_mark","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/futures_to_spot_czce":{"get":{"tags":["期货"],"summary":"公开接口：futures_to_spot_czce","description":"郑州商品交易所-期转现统计\nhttp://www.czce.com.cn/cn/jysj/qzxtj/H770311index_1.htm\n:param date: 年月日\n:type date: str\n:return: 郑州商品交易所-期转现统计\n:rtype: pandas.DataFrame","operationId":"public_futures_to_spot_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20210112\"；交易日","default":"20231228","title":"Date"},"description":"date=\"20210112\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_to_spot_dce":{"get":{"tags":["期货"],"summary":"公开接口：futures_to_spot_dce","description":"大连商品交易所-期转现\nhttp://www.dce.com.cn/dalianshangpin/xqsj/tjsj26/jgtj/qzxcx/index.html\n:param date: 期转现日期\n:type date: str\n:return: 大连商品交易所-期转现\n:rtype: pandas.DataFrame","operationId":"public_futures_to_spot_dce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"202312\"；交易年月","default":"202312","title":"Date"},"description":"date=\"202312\"；交易年月"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_to_spot_shfe":{"get":{"tags":["期货"],"summary":"公开接口：futures_to_spot_shfe","description":"上海期货交易所-期转现\nhttps://tsite.shfe.com.cn/statements/dataview.html?paramid=kx\n1、铜、铜(BC)、铝、锌、铅、镍、锡、螺纹钢、线材、热轧卷板、天然橡胶、20号胶、低硫燃料油、燃料油、石油沥青、纸浆、不锈钢的数量单位为：吨；黄金的数量单位为：克；白银的数量单位为：千克；原油的数量单位为：桶。\n2、交割量、期转现量为单向计算。\n:param date: 年月\n:type date: str\n:return: 上海期货交易所期转现\n:rtype: pandas.DataFrame","operationId":"public_futures_to_spot_shfe","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"202312\"；交易月份","default":"202312","title":"Date"},"description":"date=\"202312\"；交易月份"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_warehouse_receipt_czce":{"get":{"tags":["期货"],"summary":"公开接口：futures_warehouse_receipt_czce","description":"郑州商品交易所-交易数据-仓单日报\nhttp://www.czce.com.cn/cn/jysj/cdrb/H770310index_1.htm\n:param date: 交易日，e.g., \"20200702\"\n:type date: str\n:return: 指定日期的仓单日报数据\n:rtype: dict","operationId":"public_futures_warehouse_receipt_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20200702\"；交易日","default":"20251103","title":"Date"},"description":"date=\"20200702\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_warehouse_receipt_dce":{"get":{"tags":["期货"],"summary":"公开接口：futures_warehouse_receipt_dce","description":"大连商品交易所-行情数据-统计数据-日统计-仓单日报\nhttp://www.dce.com.cn/dce/channel/list/187.html\n:param date: 交易日，e.g., \"20200702\"\n:type date: str\n:return: 指定日期的仓单日报数据\n:rtype: dict\n:raises APIError: 大连商品交易所网站启用瑞数反爬虫验证，拒绝程序请求时抛出","operationId":"public_futures_warehouse_receipt_dce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"date=\"20251027\"；交易日","default":"20251027","title":"Date"},"description":"date=\"20251027\"；交易日"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_zh_daily_sina":{"get":{"tags":["期货"],"summary":"公开接口：futures_zh_daily_sina","description":"中国各品种期货日频率数据\nhttps://finance.sina.com.cn/futures/quotes/V2105.shtml\n:param symbol: 可以通过 match_main_contract(symbol=\"cffex\") 获取，或者访问网页获取\n:type symbol: str\n:return: 指定 symbol 的数据\n:rtype: pandas.DataFrame","operationId":"public_futures_zh_daily_sina","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"RB0\"；具体合约可以通过 qs.match_main_contract(symbol=\"shfe\") 获取或者访问网页","default":"RB0","title":"Symbol"},"description":"symbol=\"RB0\"；具体合约可以通过 qs.match_main_contract(symbol=\"shfe\") 获取或者访问网页"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_zh_minute_sina":{"get":{"tags":["期货"],"summary":"公开接口：futures_zh_minute_sina","description":"中国各品种期货分钟频率数据\nhttps://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_3\n:param symbol: 可以通过 match_main_contract(symbol=\"cffex\") 获取，或者访问网页获取\n:type symbol: str\n:param period: choice of {\"1\": \"1分钟\", \"5\": \"5分钟\", \"15\": \"15分钟\", \"30\": \"30分钟\", \"60\": \"60分钟\"}\n:type period: str\n:return: 指定 symbol 和 period 的数据\n:rtype: pandas.DataFrame","operationId":"public_futures_zh_minute_sina","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"IF2008\"；具体合约（期货品种符号需要大写），可以通过调用 qs.match_main_contract(symbol=\"cffex\") 接口获取，或者访问网页获取","default":"IF2008","title":"Symbol"},"description":"symbol=\"IF2008\"；具体合约（期货品种符号需要大写），可以通过调用 qs.match_main_contract(symbol=\"cffex\") 接口获取，或者访问网页获取"},{"name":"period","in":"query","required":false,"schema":{"type":"string","description":"period=\"1\"; choice of {\"1\": \"1分钟\", \"5\": \"5分钟\", \"15\": \"15分钟\", \"30\": \"30分钟\", \"60\": \"60分钟\"}","default":"1","title":"Period"},"description":"period=\"1\"; choice of {\"1\": \"1分钟\", \"5\": \"5分钟\", \"15\": \"15分钟\", \"30\": \"30分钟\", \"60\": \"60分钟\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_zh_realtime":{"get":{"tags":["期货"],"summary":"公开接口：futures_zh_realtime","description":"期货品种当前时刻所有可交易的合约实时数据\nhttps://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_1\n:param symbol: 品种名称；可以通过 qs.futures_symbol_mark() 获取所有品种命名表\n:type symbol: str\n:return: 期货品种当前时刻所有可交易的合约实时数据\n:rtype: pandas.DataFrame","operationId":"public_futures_zh_realtime","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"白糖\"，品种名称；可以通过 qs.futures_symbol_mark() 获取所有品种命名表","default":"PTA","title":"Symbol"},"description":"symbol=\"白糖\"，品种名称；可以通过 qs.futures_symbol_mark() 获取所有品种命名表"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/futures_zh_spot":{"get":{"tags":["期货"],"summary":"公开接口：futures_zh_spot","description":"期货的实时行情数据\nhttps://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_1\n:param symbol: 合约名称的字符串组合\n:type symbol: str\n:param market: CF 为商品期货\n:type market: str\n:param adjust: '1' or '0'；字符串的 0 或 1；返回合约、交易所和最小变动单位的实时数据，返回数据会变慢\n:type adjust: str\n:return: 期货的实时行情数据\n:rtype: pandas.DataFrame","operationId":"public_futures_zh_spot","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"futures_zh_spot 的 symbol 参数","default":"V2309","title":"Symbol"},"description":"futures_zh_spot 的 symbol 参数"},{"name":"market","in":"query","required":false,"schema":{"type":"string","description":"market=\"CF\"; market=\"CF\": 商品期货，market=\"FF\": 金融期货","default":"CF","title":"Market"},"description":"market=\"CF\"; market=\"CF\": 商品期货，market=\"FF\": 金融期货"},{"name":"adjust","in":"query","required":false,"schema":{"type":"string","description":"adjust='0'; adjust='1': 返回合约、交易所和最小变动单位的实时数据，返回数据会变慢","default":"0","title":"Adjust"},"description":"adjust='0'; adjust='1': 返回合约、交易所和最小变动单位的实时数据，返回数据会变慢"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_cffex_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_cffex_daily","description":"中国金融期货交易所-日频率交易数据\nhttp://www.cffex.com.cn/rtj/\n:param date: 交易日；数据开始时间为 20100416\n:type date: str\n:return: 日频率交易数据\n:rtype: pandas.DataFrame","operationId":"public_get_cffex_daily","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_cffex_daily 的 date 参数","default":"20100416","title":"Date"},"description":"get_cffex_daily 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_cffex_rank_table":{"get":{"tags":["期货"],"summary":"公开接口：get_cffex_rank_table","description":"中国金融期货交易所前 20 会员持仓排名数据明细\nhttp://www.cffex.com.cn/ccpm/\n注：该交易所既公布品种排名，也公布标的排名\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:param vars_list: 合约品种如RB、AL等列表 为空时为所有商品，数据从20100416开始，每交易日16:30左右更新数据\n:return: 持仓排名\n:rtype: pandas.DataFrame\n:rfield:\nrank                        排名                        int\nvol_party_name              成交量排序的当前名次会员        string(中文)\nvol                         该会员成交量                  int\nvol_chg                     该会员成交量变化量             int\nlong_party_name             持多单排序的当前名次会员        string(中文)\nlong_open_interest          该会员持多单                  int\nlong_open_interest_chg      该会员持多单变化量             int\nshort_party_name            持空单排序的当前名次会员        string(中文)\nshort_open_interest         该会员持空单                  int\nshort_open_interest_chg     该会员持空单变化量             int\nsymbol                      标的合约                     string\nvar                         品种                        string\ndate                        日期                        string YYYYMMDD","operationId":"public_get_cffex_rank_table","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_cffex_rank_table 的 date 参数","default":"20190805","title":"Date"},"description":"get_cffex_rank_table 的 date 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"string","description":"get_cffex_rank_table 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"get_cffex_rank_table 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_czce_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_czce_daily","description":"郑州商品交易所-日频率-量价数据\nhttp://www.czce.com.cn/cn/jysj/mrhq/H770301index_1.htm\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date 对象，默认为当前交易日；日期需要大于 20100824\n:type date: str or datetime.date\n:return: 郑州商品交易所-日频率-量价数据\n:rtype: pandas.DataFrame","operationId":"public_get_czce_daily","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_czce_daily 的 date 参数","default":"20050525","title":"Date"},"description":"get_czce_daily 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_dce_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_dce_daily","description":"大连商品交易所日交易数据\nhttp://www.dce.com.cn/dalianshangpin/xqsj/tjsj26/rtj/rxq/index.html\n:param date: 交易日，e.g., 20200416\n:type date: str\n:return: 具体交易日的个品种行情数据\n:rtype: pandas.DataFrame","operationId":"public_get_dce_daily","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_dce_daily 的 date 参数","default":"20251027","title":"Date"},"description":"get_dce_daily 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_dce_rank_table":{"get":{"tags":["期货"],"summary":"公开接口：get_dce_rank_table","description":"大连商品交易所前 20 会员持仓排名数据明细，由于交易所网站问题，需要 20200720 之后才有数据\n注：该交易所只公布标的合约排名\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date 对象，为空时为当天\n:param vars_list: 合约品种如 RB、AL 等列表为空时为所有商品，数据从 20060104 开始，每交易日 16:30 左右更新数据\n:return: 持仓排名\n:rtype: pandas.DataFrame\n\n返回值格式\nrank                        排名                        int\nvol_party_name              成交量排序的当前名次会员      string(中文)\nvol                         该会员成交量                 int\nvol_chg                     该会员成交量变化量            int\nlong_party_name             持多单排序的当前名次会员      string(中文)\nlong_open_interest          该会员持多单                 int\nlong_open_interest_chg      该会员持多单变化量            int\nshort_party_name            持空单排序的当前名次会员       string(中文)\nshort_open_interest         该会员持空单                  int\nshort_open_interest_chg     该会员持空单变化量             int\nsymbol                      标的合约                     string\nvar                         品种                        string\ndate                        日期                        string YYYYMMDD","operationId":"public_get_dce_rank_table","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_dce_rank_table 的 date 参数","default":"20230706","title":"Date"},"description":"get_dce_rank_table 的 date 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"string","description":"get_dce_rank_table 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"get_dce_rank_table 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_futures_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_futures_daily","description":"交易所日交易数据\n:param start_date: 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:type start_date: str\n:param end_date: 结束数据 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:type end_date: str\n:param market: 'CFFEX' 中金所，'CZCE' 郑商所，'SHFE' 上期所，'DCE' 大商所 之一，'INE' 上海国际能源交易中心，\"GFEX\" 广州期货交易所。默认为中金所\n:type market: str\n:return: 交易所日交易数据\n:rtype: pandas.DataFrame","operationId":"public_get_futures_daily","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"start_date=\"20200701\"","default":"20220208","title":"Start Date"},"description":"start_date=\"20200701\""},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"end_date=\"20200716\"","default":"20220208","title":"End Date"},"description":"end_date=\"20200716\""},{"name":"market","in":"query","required":false,"schema":{"type":"string","description":"market=\"DCE\"; choice of {\"CFFEX\", \"INE\", \"CZCE\", \"DCE\", \"SHFE\", \"GFEX\"}","default":"CFFEX","title":"Market"},"description":"market=\"DCE\"; choice of {\"CFFEX\", \"INE\", \"CZCE\", \"DCE\", \"SHFE\", \"GFEX\"}"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_gfex_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_gfex_daily","description":"广州期货交易所-日频率-量价数据\n广州期货交易所：工业硅（上市时间：20221222）\nhttp://www.gfex.com.cn/gfex/rihq/hqsj_tjsj.shtml\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 广州期货交易所-日频率-量价数据\n:rtype: pandas.DataFrame","operationId":"public_get_gfex_daily","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_gfex_daily 的 date 参数","default":"20221223","title":"Date"},"description":"get_gfex_daily 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_ine_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_ine_daily","description":"上海国际能源交易中心-日频率-量价数据\n上海国际能源交易中心：原油期货（上市时间：20180326）；20号胶期货（上市时间：20190812）\ntrade_price: https://www.ine.cn/statements/daily/?paramid=kx\ntrade_note: https://www.ine.cn/data/datanote.dat\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 上海国际能源交易中心-日频率-量价数据\n:rtype: pandas.DataFrame or None","operationId":"public_get_ine_daily","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_ine_daily 的 date 参数","default":"20241129","title":"Date"},"description":"get_ine_daily 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_rank_sum":{"get":{"tags":["期货"],"summary":"公开接口：get_rank_sum","description":"采集五个期货交易所前5、前10、前15、前20会员持仓排名数据\n注1：由于上期所和中金所只公布每个品种内部的标的排名，没有公布品种的总排名；\n    所以函数输出的品种排名是由品种中的每个标的加总获得，并不是真实的品种排名列表\n注2：大商所只公布了品种排名，未公布标的排名\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:type date: date\n:param vars_list: 合约品种如 ['RB', 'AL'] 等列表为空时为所有商品\n:type vars_list: list\n:return: 持仓排名数据\n:rtype: pandas.DataFrame\nsymbol                           标的合约                     string\nvar                              商品品种                     string\nvol_top5                         成交量前5会员成交量总和         int\nvol_chg_top5                     成交量前5会员成交量变化总和      int\nlong_open_interest_top5          持多单前5会员持多单总和         int\nlong_open_interest_chg_top5      持多单前5会员持多单变化总和      int\nshort_open_interest_top5         持空单前5会员持空单总和         int\nshort_open_interest_chg_top5     持空单前5会员持空单变化总和      int\nvol_top10                        成交量前10会员成交量总和        int","operationId":"public_get_rank_sum","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_rank_sum 的 date 参数","default":"20210525","title":"Date"},"description":"get_rank_sum 的 date 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"get_rank_sum 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"get_rank_sum 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_rank_sum_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_rank_sum_daily","description":"采集四个期货交易所前 5、前 10、前 15、前 20 会员持仓排名数据\n注1：由于上期所和中金所只公布每个品种内部的标的排名，没有公布品种的总排名；\n    所以函数输出的品种排名是由品种中的每个标的加总获得，并不是真实的品种排名列表\n注2：大商所只公布了品种排名，未公布标的排名\n:param start_day: 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:type start_day: str\n:param end_day: 结束数据 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:type end_day: str\n:param vars_list: 合约品种如 ['RB'、'AL'] 等列表为空时为所有商品\n:type vars_list: list\n:return:  会员持仓排名数据\n:rtype: pandas.DataFrame\nsymbol                           标的合约                     string\nvar                              商品品种                     string\nvol_top5                         成交量前5会员成交量总和         int\nvol_chg_top5                     成交量前5会员成交量变化总和      int\nlong_open_interest_top5          持多单前5会员持多单总和         int\nlong_open_interest_chg_top5      持多单前5会员持多单变化总和      int\nshort_open_interest_top5         持空单前5会员持空单总和         int\nshort_open_interest_chg_top5     持空单前5会员持空单变化总和      int\nvol_top10                        成交量前10会员成交量总和        int","operationId":"public_get_rank_sum_daily","parameters":[{"name":"start_day","in":"query","required":false,"schema":{"type":"string","description":"get_rank_sum_daily 的 start_day 参数","default":"20210510","title":"Start Day"},"description":"get_rank_sum_daily 的 start_day 参数"},{"name":"end_day","in":"query","required":false,"schema":{"type":"string","description":"get_rank_sum_daily 的 end_day 参数","default":"20210510","title":"End Day"},"description":"get_rank_sum_daily 的 end_day 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"get_rank_sum_daily 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"get_rank_sum_daily 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_rank_table_czce":{"get":{"tags":["期货"],"summary":"公开接口：get_rank_table_czce","description":"郑州商品交易所前 20 会员持仓排名数据明细\nhttps://www.czce.com.cn/cn/jysj/ccpm/H077003004index_1.htm\n注：该交易所既公布了品种排名，也公布了标的排名\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象 为空时为当天\n:return: 持仓排名数据明细\n:rtype: pandas.DataFrame\n返回值格式\nrank                        排名                        int\nvol_party_name              成交量排序的当前名次会员        string(中文)\nvol                         该会员成交量                  int\nvol_chg                     该会员成交量变化量             int\nlong_party_name             持多单排序的当前名次会员        string(中文)\nlong_open_interest               该会员持多单                  int\nlong_open_interest_chg           该会员持多单变化量             int\nshort_party_name            持空单排序的当前名次会员        string(中文)\nshort_open_interest              该会员持空单                  int\nshort_open_interest_chg          该会员持空单变化量             int\nsymbol                      标的合约                     string\nvar                         品种                        string\ndate                        日期                        string YYYYMMDD","operationId":"public_get_rank_table_czce","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_rank_table_czce 的 date 参数","default":"20251103","title":"Date"},"description":"get_rank_table_czce 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_receipt":{"get":{"tags":["期货"],"summary":"公开接口：get_receipt","description":"大宗商品-注册仓单数据\n:param start_date: 开始日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date 对象 为空时为当天\n:type start_date: str\n:param end_date: 结束数据 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date 对象 为空时为当天\n:type end_date: str\n:param vars_list: 合约品种如 RB、AL 等列表为空时为所有商品\n:type vars_list: str\n:return: 注册仓单数据\n:rtype: pandas.DataFrame","operationId":"public_get_receipt","parameters":[{"name":"start_date","in":"query","required":false,"schema":{"type":"string","description":"get_receipt 的 start_date 参数","title":"Start Date"},"description":"get_receipt 的 start_date 参数"},{"name":"end_date","in":"query","required":false,"schema":{"type":"string","description":"get_receipt 的 end_date 参数","title":"End Date"},"description":"get_receipt 的 end_date 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"get_receipt 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"get_receipt 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_roll_yield":{"get":{"tags":["期货"],"summary":"公开接口：get_roll_yield","description":"指定交易日指定品种（主力和次主力）或任意两个合约的展期收益率\nParameters\n------\ndate: string 某一天日期 format: YYYYMMDD\nvar: string 合约品种如 RB、AL 等\nsymbol1: string 合约 1 如 rb1810\nsymbol2: string 合约 2 如 rb1812\ndf: DataFrame或None 从dailyBar得到合约价格，如果为空就在函数内部抓dailyBar，直接喂给数据可以让计算加快","operationId":"public_get_roll_yield","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield 的 date 参数","title":"Date"},"description":"get_roll_yield 的 date 参数"},{"name":"var","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield 的 var 参数","default":"BB","title":"Var"},"description":"get_roll_yield 的 var 参数"},{"name":"symbol1","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield 的 symbol1 参数","title":"Symbol1"},"description":"get_roll_yield 的 symbol1 参数"},{"name":"symbol2","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield 的 symbol2 参数","title":"Symbol2"},"description":"get_roll_yield 的 symbol2 参数"},{"name":"df","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield 的 df 参数","title":"Df"},"description":"get_roll_yield 的 df 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_roll_yield_bar":{"get":{"tags":["期货"],"summary":"公开接口：get_roll_yield_bar","description":"展期收益率\n:param type_method: 'symbol': 获取指定交易日指定品种所有交割月合约的收盘价；'var': 获取指定交易日所有品种两个主力合约的展期收益率（展期收益率横截面）；'date': 获取指定品种每天的两个主力合约的展期收益率（展期收益率时间序列）\n:param var: 合约品种如 \"RB\", \"AL\" 等\n:param date: 指定交易日 format: YYYYMMDD\n:param start_day: 开始日期 format: YYYYMMDD\n:param end_day: 结束日期 format: YYYYMMDD\n:return: pandas.DataFrame\n展期收益率数据(DataFrame)\nry      展期收益率\nindex   日期或品种","operationId":"public_get_roll_yield_bar","parameters":[{"name":"type_method","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield_bar 的 type_method 参数","default":"var","title":"Type Method"},"description":"get_roll_yield_bar 的 type_method 参数"},{"name":"var","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield_bar 的 var 参数","default":"RB","title":"Var"},"description":"get_roll_yield_bar 的 var 参数"},{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield_bar 的 date 参数","default":"20201030","title":"Date"},"description":"get_roll_yield_bar 的 date 参数"},{"name":"start_day","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield_bar 的 start_day 参数","title":"Start Day"},"description":"get_roll_yield_bar 的 start_day 参数"},{"name":"end_day","in":"query","required":false,"schema":{"type":"string","description":"get_roll_yield_bar 的 end_day 参数","title":"End Day"},"description":"get_roll_yield_bar 的 end_day 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_shfe_daily":{"get":{"tags":["期货"],"summary":"公开接口：get_shfe_daily","description":"上海期货交易所-日频率-量价数据\nhttps://tsite.shfe.com.cn/statements/dataview.html?paramid=kx\n:param date: 日期 format: YYYY-MM-DD 或 YYYYMMDD 或 datetime.date对象，默认为当前交易日\n:type date: str or datetime.date\n:return: 上海期货交易所-日频率-量价数据\n:rtype: pandas.DataFrame or None\n上期所日交易数据(DataFrame):\nsymbol        合约代码\ndate          日期\nopen          开盘价\nhigh          最高价\nlow           最低价\nclose         收盘价\nvolume        成交量\nopen_interest 持仓量\nturnover      成交额\nsettle        结算价\npre_settle     前结算价\nvariety       合约类别\n或 None(给定交易日没有交易数据)","operationId":"public_get_shfe_daily","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_shfe_daily 的 date 参数","default":"20220415","title":"Date"},"description":"get_shfe_daily 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/get_shfe_rank_table":{"get":{"tags":["期货"],"summary":"公开接口：get_shfe_rank_table","description":"上海期货交易所会员成交及持仓排名表\nhttps://www.shfe.com.cn/\nhttps://tsite.shfe.com.cn/statements/dataview.html?paramid=kx\n注：该交易所只公布每个品种内部的标的排名，没有公布品种的总排名\n数据从 20020107 开始，每交易日 16:30 左右更新数据\n:param date: 交易日\n:type date: str\n:param vars_list: 合约品种如 RB、AL等列表；为空时为所有商品\n:type vars_list: list\n:return: 上海期货交易所会员成交及持仓排名表\n:rtype: dict\nrank                        排名                        int\nvol_party_name              成交量排序的当前名次会员        string(中文)\nvol                         该会员成交量                  int\nvol_chg                     该会员成交量变化量             int\nlong_party_name             持多单排序的当前名次会员        string(中文)\nlong_open_interest          该会员持多单                  int\nlong_open_interest_chg      该会员持多单变化量             int\nshort_party_name            持空单排序的当前名次会员        string(中文)\nshort_open_interest         该会员持空单                  int\nshort_open_interest_chg     该会员持空单变化量             int\nsymbol                      标的合约                     string\nvar                         品种                        string\ndate                        日期                        string YYYYMMDD","operationId":"public_get_shfe_rank_table","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"get_shfe_rank_table 的 date 参数","title":"Date"},"description":"get_shfe_rank_table 的 date 参数"},{"name":"vars_list","in":"query","required":false,"schema":{"type":"array","items":{},"description":"get_shfe_rank_table 的 vars_list 参数","default":["IF","IC","IM","IH","T","TF","TS","TL","C","CS","A","B","M","Y","P","FB","BB","JD","L","V","PP","J","JM","I","EG","RR","EB","PG","LH","LG","BZ","WH","PM","CF","SR","TA","OI","RI","MA","ME","FG","RS","RM","ZC","JR","LR","SF","SM","WT","TC","GN","RO","ER","SRX","SRY","WSX","WSY","CY","AP","UR","CJ","SA","PK","PF","PX","SH","PR","PL","CU","AL","ZN","PB","NI","SN","AU","AG","RB","WR","HC","FU","BU","RU","SC","NR","SP","SS","LU","BC","AO","BR","EC","AD","OP","SI","LC","PS"],"title":"Vars List"},"description":"get_shfe_rank_table 的 vars_list 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/index_hog_spot_price":{"get":{"tags":["期货"],"summary":"公开接口：index_hog_spot_price","description":"行情宝-生猪市场价格指数\nhttps://hqb.nxin.com/pigindex/index.shtml\n:return: 生猪市场价格指数\n:rtype: pandas.DataFrame","operationId":"public_index_hog_spot_price","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/match_main_contract":{"get":{"tags":["期货"],"summary":"公开接口：match_main_contract","description":"新浪财经-期货-主力合约\nhttps://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_1\n:param symbol: choice of {'czce', 'dce', 'shfe', 'cffex', 'gfex'}\n:type symbol: str\n:return: 主力合约的字符串\n:rtype: str","operationId":"public_match_main_contract","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"match_main_contract 的 symbol 参数","default":"cffex","title":"Symbol"},"description":"match_main_contract 的 symbol 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"tags":[{"name":"期货"}],"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}