{"openapi":"3.1.0","info":{"title":"QuantSource API · 高频数据","description":"QuantSourceAPI 是 QuantSource 的 HTTP API 工具, 主要目的是使 QuantSource 的数据接口部署到服务器，从而让用户通过 HTTP 访问相关接口来获取所需要的数据","version":"0.1.0"},"paths":{"/api/public/hf_sp_500":{"get":{"tags":["高频数据"],"summary":"公开接口：hf_sp_500","description":"S&P 500 minute data from 2012-2018\n:param year: from 2012-2018\n:type year: str\n:return: specific year dataframe\n:rtype: pandas.DataFrame","operationId":"public_hf_sp_500","parameters":[{"name":"year","in":"query","required":false,"schema":{"type":"string","description":"year=\"2017\"；只能获取 **2012-2018** 年的数据","default":"2017","title":"Year"},"description":"year=\"2017\"；只能获取 **2012-2018** 年的数据"}],"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"}}}}