{"openapi":"3.1.0","info":{"title":"QuantSource API · 现货","description":"QuantSourceAPI 是 QuantSource 的 HTTP API 工具, 主要目的是使 QuantSource 的数据接口部署到服务器，从而让用户通过 HTTP 访问相关接口来获取所需要的数据","version":"0.1.0"},"paths":{"/api/public/spot_corn_price_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_corn_price_soozhu","description":"搜猪-生猪大数据-全国玉米价格走势\nhttps://www.soozhu.com/price/data/center/\n:return: 全国玉米价格走势\n:rtype: pandas.DataFrame","operationId":"public_spot_corn_price_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_golden_benchmark_sge":{"get":{"tags":["现货"],"summary":"公开接口：spot_golden_benchmark_sge","description":"上海黄金交易所-数据资讯-上海金基准价-历史数据\nhttps://www.sge.com.cn/sjzx/jzj\n:return: 历史数据\n:rtype: pandas.DataFrame","operationId":"public_spot_golden_benchmark_sge","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_hist_sge":{"get":{"tags":["现货"],"summary":"公开接口：spot_hist_sge","description":"上海黄金交易所-数据资讯-行情走势-历史数据\nhttps://www.sge.com.cn/sjzx/mrhq\n:param symbol: choice of {'Au99.99', 'Au99.95', 'Au100g', 'Pt99.95', 'Ag(T+D)', 'Au(T+D)',\n'mAu(T+D)', 'Au(T+N1)', 'Au(T+N2)', 'Ag99.99', 'iAu99.99', 'Au99.5', 'iAu100g', 'iAu99.5',\n'PGC30g', 'NYAuTN06', 'NYAuTN12'}；可以通过 qs.spot_symbol_table_sge() 获取品种表\n:type symbol: str\n:return: 历史数据\n:rtype: pandas.DataFrame","operationId":"public_spot_hist_sge","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"Au99.99\"；可以通过 qs.spot_symbol_table_sge() 获取品种表","default":"Au99.99","title":"Symbol"},"description":"symbol=\"Au99.99\"；可以通过 qs.spot_symbol_table_sge() 获取品种表"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/spot_hog_crossbred_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_hog_crossbred_soozhu","description":"搜猪-生猪大数据-全国后备二元母猪\nhttps://www.soozhu.com/price/data/center/\n:return: 全国后备二元母猪\n:rtype: pandas.DataFrame","operationId":"public_spot_hog_crossbred_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_hog_lean_price_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_hog_lean_price_soozhu","description":"搜猪-生猪大数据-全国瘦肉型肉猪\nhttps://www.soozhu.com/price/data/center/\n:return: 全国瘦肉型肉猪\n:rtype: pandas.DataFrame","operationId":"public_spot_hog_lean_price_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_hog_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_hog_soozhu","description":"搜猪-生猪大数据-各省均价实时排行榜\nhttps://www.soozhu.com/price/data/center/\n:return: 各省均价实时排行榜\n:rtype: pandas.DataFrame","operationId":"public_spot_hog_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_hog_three_way_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_hog_three_way_soozhu","description":"搜猪-生猪大数据-全国三元仔猪\nhttps://www.soozhu.com/price/data/center/\n:return: 全国三元仔猪\n:rtype: pandas.DataFrame","operationId":"public_spot_hog_three_way_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_hog_year_trend_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_hog_year_trend_soozhu","description":"搜猪-生猪大数据-今年以来全国出栏均价走势\nhttps://www.soozhu.com/price/data/center/\n:return: 今年以来全国出栏均价走势\n:rtype: pandas.DataFrame","operationId":"public_spot_hog_year_trend_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_mixed_feed_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_mixed_feed_soozhu","description":"搜猪-生猪大数据-全国育肥猪合料（含自配料）半月走势\nhttps://www.soozhu.com/price/data/center/\n:return: 全国育肥猪合料（含自配料）半月走势\n:rtype: pandas.DataFrame","operationId":"public_spot_mixed_feed_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_price_qh":{"get":{"tags":["现货"],"summary":"公开接口：spot_price_qh","description":"99 期货-数据-期现-现货走势\nhttps://www.99qh.com/data/spotTrend\n:param symbol: 品种名称\n:type symbol: str\n:return: 现货走势\n:rtype: pandas.DataFrame","operationId":"public_spot_price_qh","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"螺纹钢\"；可以通过 qs.spot_price_table_qh() 获取品种表","default":"螺纹钢","title":"Symbol"},"description":"symbol=\"螺纹钢\"；可以通过 qs.spot_price_table_qh() 获取品种表"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/spot_price_table_qh":{"get":{"tags":["现货"],"summary":"公开接口：spot_price_table_qh","description":"99 期货-数据-期现-交易所与品种对照表\nhttps://www.99qh.com/data/spotTrend\n:return: 交易所与品种对照表\n:rtype: pandas.DataFrame","operationId":"public_spot_price_table_qh","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_quotations_sge":{"get":{"tags":["现货"],"summary":"公开接口：spot_quotations_sge","description":"上海黄金交易所-实时行情数据\nhttps://www.sge.com.cn/\nhttps://www.sge.com.cn/graph/quotations\n:param symbol: choice of {'Au99.99', 'Au99.95', 'Au100g', 'Pt99.95', 'Ag(T+D)', 'Au(T+D)',\n'mAu(T+D)', 'Au(T+N1)', 'Au(T+N2)', 'Ag99.99', 'iAu99.99', 'Au99.5', 'iAu100g',\n'iAu99.5', 'PGC30g', 'NYAuTN06', 'NYAuTN12'}；可以通过 qs.spot_symbol_table_sge() 获取品种表\n:type symbol: str\n:return: 行情数据\n:rtype: pandas.DataFrame","operationId":"public_spot_quotations_sge","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"Au99.99\"；可以通过 qs.spot_symbol_table_sge() 获取品种表","default":"Au99.99","title":"Symbol"},"description":"symbol=\"Au99.99\"；可以通过 qs.spot_symbol_table_sge() 获取品种表"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/spot_silver_benchmark_sge":{"get":{"tags":["现货"],"summary":"公开接口：spot_silver_benchmark_sge","description":"上海黄金交易所-数据资讯-上海银基准价-历史数据\nhttps://www.sge.com.cn/sjzx/mrhq\n:return: 历史数据\n:rtype: pandas.DataFrame","operationId":"public_spot_silver_benchmark_sge","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_soybean_price_soozhu":{"get":{"tags":["现货"],"summary":"公开接口：spot_soybean_price_soozhu","description":"搜猪-生猪大数据-全国豆粕价格走势\nhttps://www.soozhu.com/price/data/center/\n:return: 全国豆粕价格走势\n:rtype: pandas.DataFrame","operationId":"public_spot_soybean_price_soozhu","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/spot_symbol_table_sge":{"get":{"tags":["现货"],"summary":"公开接口：spot_symbol_table_sge","description":"上海黄金交易所-数据资讯-行情走势-品种表\nhttps://www.sge.com.cn/sjzx/mrhq\n:return: 品种表\n:rtype: pandas.DataFrame","operationId":"public_spot_symbol_table_sge","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"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"}}}}