{"openapi":"3.1.0","info":{"title":"QuantSource API · 资讯文章","description":"QuantSourceAPI 是 QuantSource 的 HTTP API 工具, 主要目的是使 QuantSource 的数据接口部署到服务器，从而让用户通过 HTTP 访问相关接口来获取所需要的数据","version":"0.1.0"},"paths":{"/api/public/article_epu_index":{"get":{"tags":["资讯文章"],"summary":"公开接口：article_epu_index","description":"经济政策不确定性指数\nhttps://www.policyuncertainty.com/index.html\n:param symbol: 指定的国家名称，e.g. “China”\n:type symbol: str\n:return: 经济政策不确定性指数数据\n:rtype: pandas.DataFrame","operationId":"public_article_epu_index","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"China\"；按 **国家和地区一览表** 输入相应参数","default":"China","title":"Symbol"},"description":"symbol=\"China\"；按 **国家和地区一览表** 输入相应参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/article_ff_crr":{"get":{"tags":["资讯文章"],"summary":"公开接口：article_ff_crr","description":"FF多因子模型\nhttps://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html\n:return: FF多因子模型单一表格\n:rtype: pandas.DataFrame","operationId":"public_article_ff_crr","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/public/article_oman_rv":{"get":{"tags":["资讯文章"],"summary":"公开接口：article_oman_rv","description":"Oxford-Man Institute of Quantitative Finance Realized Library 的数据\n:param symbol: str ['AEX', 'AORD', 'BFX', 'BSESN', 'BVLG', 'BVSP', 'DJI', 'FCHI', 'FTMIB', 'FTSE', 'GDAXI', 'GSPTSE', 'HSI', 'IBEX', 'IXIC', 'KS11', 'KSE', 'MXX', 'N225', 'NSEI', 'OMXC20', 'OMXHPI', 'OMXSPI', 'OSEAX', 'RUT', 'SMSI', 'SPX', 'SSEC', 'SSMI', 'STI', 'STOXX50E']\n:param index: str 指标 ['medrv', 'rk_twoscale', 'bv', 'rv10', 'rv5', 'rk_th2', 'rv10_ss', 'rsv', 'rv5_ss', 'bv_ss', 'rk_parzen', 'rsv_ss']\n:return: pandas.DataFrame\n\nThe Oxford-Man Institute's \"realised library\" contains daily non-parametric measures of how volatility financial assets or indexes were in the past. Each day's volatility measure depends solely on financial data from that day. They are driven by the use of the latest innovations in econometric modelling and theory to design them, while we draw our high frequency data from the Thomson Reuters DataScope Tick History database. Realised measures are not volatility forecasts. However, some researchers use these measures as an input into forecasting models. The aim of this line of research is to make financial markets more transparent by exposing how volatility changes through time.\n\nThis Library is used as the basis of some of our own research, which effects its scope, and is made available here to encourage the more widespread exploitation of these methods. It is given 'as is' and solely for informational purposes, please read the disclaimer.\n\nThe volatility data can be visually explored. We make the complete up-to-date dataset available for download. Lists of assets covered and realized measures available are also available.\n| Symbol    | Name                                      | Earliest Available | Latest Available  |\n|-----------|-------------------------------------------|--------------------|-------------------|\n| .AEX      | AEX index                                 | January 03, 2000   | November 28, 2019 |\n| .AORD     | All Ordinaries                            | January 04, 2000   | November 28, 2019 |\n| .BFX      | Bell 20 Index                             | January 03, 2000   | November 28, 2019 |\n| .BSESN    | S&P BSE Sensex                            | January 03, 2000   | November 28, 2019 |\n| .BVLG     | PSI All-Share Index                       | October 15, 2012   | November 28, 2019 |\n| .BVSP     | BVSP BOVESPA Index                        | January 03, 2000   | November 28, 2019 |\n| .DJI      | Dow Jones Industrial Average              | January 03, 2000   | November 27, 2019 |\n| .FCHI     | CAC 40                                    | January 03, 2000   | November 28, 2019 |\n| .FTMIB    | FTSE MIB                                  | June 01, 2009      | November 28, 2019 |\n| .FTSE     | FTSE 100                                  | January 04, 2000   | November 28, 2019 |\n| .GDAXI    | DAX                                       | January 03, 2000   | November 28, 2019 |\n| .GSPTSE   | S&P/TSX Composite index                   | May 02, 2002       | November 28, 2019 |\n| .HSI      | HANG SENG Index                           | January 03, 2000   | November 28, 2019 |\n| .IBEX     | IBEX 35 Index                             | January 03, 2000   | November 28, 2019 |\n| .IXIC     | Nasdaq 100                                | January 03, 2000   | November 27, 2019 |\n| .KS11     | Korea Composite Stock Price Index (KOSPI) | January 04, 2000   | November 28, 2019 |\n| .KSE      | Karachi SE 100 Index                      | January 03, 2000   | November 28, 2019 |\n| .MXX      | IPC Mexico                                | January 03, 2000   | November 28, 2019 |\n| .N225     | Nikkei 225                                | February 02, 2000  | November 28, 2019 |\n| .NSEI     | NIFTY 50                                  | January 03, 2000   | November 28, 2019 |\n| .OMXC20   | OMX Copenhagen 20 Index                   | October 03, 2005   | November 28, 2019 |\n| .OMXHPI   | OMX Helsinki All Share Index              | October 03, 2005   | November 28, 2019 |\n| .OMXSPI   | OMX Stockholm All Share Index             | October 03, 2005   | November 28, 2019 |\n| .OSEAX    | Oslo Exchange All-share Index             | September 03, 2001 | November 28, 2019 |\n| .RUT      | Russel 2000                               | January 03, 2000   | November 27, 2019 |\n| .SMSI     | Madrid General Index                      | July 04, 2005      | November 28, 2019 |\n| .SPX      | S&P 500 Index                             | January 03, 2000   | November 27, 2019 |\n| .SSEC     | Shanghai Composite Index                  | January 04, 2000   | November 28, 2019 |\n| .SSMI     | Swiss Stock Market Index                  | January 04, 2000   | November 28, 2019 |\n| .STI      | Straits Times Index                       | January 03, 2000   | November 28, 2019 |\n| .STOXX50E | EURO STOXX 50                             | January 03, 2000   | November 28, 2019 |","operationId":"public_article_oman_rv","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"FTSE\"，具体指数请查看如下 **已实现波动率指数一览表**","default":"FTSE","title":"Symbol"},"description":"symbol=\"FTSE\"，具体指数请查看如下 **已实现波动率指数一览表**"},{"name":"index","in":"query","required":false,"schema":{"type":"string","description":"index=\"rk_th2\"，具体指标请查看如下 **已实现波动率指标一览表**","default":"rk_th2","title":"Index"},"description":"index=\"rk_th2\"，具体指标请查看如下 **已实现波动率指标一览表**"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/article_oman_rv_short":{"get":{"tags":["资讯文章"],"summary":"公开接口：article_oman_rv_short","description":"Oxford-Man Institute of Quantitative Finance Realized Library 的数据\n:param symbol: str FTSE: FTSE 100, GDAXI: DAX, RUT: Russel 2000, SPX: S&P 500 Index, STOXX50E: EURO STOXX 50, SSEC: Shanghai Composite Index, N225: Nikkei 225\n:return: pandas.DataFrame\n\nThe Oxford-Man Institute's \"realised library\" contains daily non-parametric measures of how volatility financial assets or indexes were in the past. Each day's volatility measure depends solely on financial data from that day. They are driven by the use of the latest innovations in econometric modelling and theory to design them, while we draw our high frequency data from the Thomson Reuters DataScope Tick History database. Realised measures are not volatility forecasts. However, some researchers use these measures as an input into forecasting models. The aim of this line of research is to make financial markets more transparent by exposing how volatility changes through time.\n\nThis Library is used as the basis of some of our own research, which effects its scope, and is made available here to encourage the more widespread exploitation of these methods. It is given 'as is' and solely for informational purposes, please read the disclaimer.\n\nThe volatility data can be visually explored. We make the complete up-to-date dataset available for download. Lists of assets covered and realized measures available are also available.","operationId":"public_article_oman_rv_short","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"article_oman_rv_short 的 symbol 参数","default":"FTSE","title":"Symbol"},"description":"article_oman_rv_short 的 symbol 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/article_rlab_rv":{"get":{"tags":["资讯文章"],"summary":"公开接口：article_rlab_rv","description":"修大成主页-Risk Lab-Realized Volatility\n:param symbol: str 股票代码\n:return: pandas.DataFrame\n1996-01-02    0.000000\n1996-01-04    0.000000\n1996-01-05    0.000000\n1996-01-09    0.000000\n1996-01-10    0.000000\n                ...\n2019-11-04    0.175107\n2019-11-05    0.185112\n2019-11-06    0.210373\n2019-11-07    0.240808\n2019-11-08    0.199549\nName: RV, Length: 5810, dtype: float64\n\nWebsite\nhttps://dachxiu.chicagobooth.edu/\n\nObjective\nWe provide up-to-date daily annualized realized volatilities for individual stocks, ETFs, and future contracts, which are estimated from high-frequency data. We are in the process of incorporating equities from global markets.\n\nData\nWe collect trades at their highest frequencies available (up to every millisecond for US equities after 2007), and clean them using the prevalent national best bid and offer (NBBO) that are available up to every second. The mid-quotes are calculated based on the NBBOs, so their highest sampling frequencies are also up to every second.\n\nMethodology\nWe provide quasi-maximum likelihood estimates of volatility (QMLE) based on moving-average models MA(q), using non-zero returns of transaction prices (or mid-quotes if available) sampled up to their highest frequency available, for days with at least 12 observations. We select the best model (q) using Akaike Information Criterion (AIC). For comparison, we report realized volatility (RV) estimates using 5-minute and 15-minute subsampled returns.\n\nReferences\n1. “When Moving-Average Models Meet High-Frequency Data: Uniform Inference on Volatility”, by Rui Da and Dacheng Xiu. 2017.\n2. “Quasi-Maximum Likelihood Estimation of Volatility with High Frequency Data”, by Dacheng Xiu. Journal of Econometrics, 159 (2010), 235-250.\n3. “How Often to Sample A Continuous-time Process in the Presence of Market Microstructure Noise”, by Yacine Aït-Sahalia, Per Mykland, and Lan Zhang. Review of Financial Studies, 18 (2005), 351–416.\n4. “The Distribution of Exchange Rate Volatility”, by Torben Andersen, Tim Bollerslev, Francis X. Diebold, and Paul Labys. Journal of the American Statistical Association, 96 (2001), 42-55.\n5. “Econometric Analysis of Realized Volatility and Its Use in Estimating Stochastic Volatility Models”, by Ole E Barndorff‐Nielsen and Neil Shephard. Journal of the Royal Statistical Society: Series B, 64 (2002), 253-280.","operationId":"public_article_rlab_rv","parameters":[{"name":"symbol","in":"query","required":false,"schema":{"type":"string","description":"symbol=\"39693\"，某个具体指数 help(article_rlab_rv)","default":"39693","title":"Symbol"},"description":"symbol=\"39693\"，某个具体指数 help(article_rlab_rv)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/fred_md":{"get":{"tags":["资讯文章"],"summary":"公开接口：fred_md","description":"The accompanying paper shows that factors extracted from the FRED-MD dataset share the same predictive content as those based on the various vintages of the so-called Stock-Watson data. In addition, it suggests that diffusion indexes constructed as the partial sum of the factor estimates can potentially be useful for the study of business cycle chronology.\n:param date: e.g., \"2020-03\"; from \"2015-01\" to now\n:type date: str\n:return: Monthly Data\n:rtype: pandas.DataFrame","operationId":"public_fred_md","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"fred_md 的 date 参数","default":"2020-01","title":"Date"},"description":"fred_md 的 date 参数"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/fred_qd":{"get":{"tags":["资讯文章"],"summary":"公开接口：fred_qd","description":"FRED-QD is a quarterly frequency companion to FRED-MD. It is designed to emulate the dataset used in \"Disentangling the Channels of the 2007-2009 Recession\" by Stock and Watson (2012, NBER WP No. 18094) but also contains several additional series. Comments or suggestions are welcome.\n:param date: e.g., \"2020-03\"; from \"2015-01\" to now\n:type date: str\n:return: Quarterly Data\n:rtype: pandas.DataFrame","operationId":"public_fred_qd","parameters":[{"name":"date","in":"query","required":false,"schema":{"type":"string","description":"fred_qd 的 date 参数","default":"2020-01","title":"Date"},"description":"fred_qd 的 date 参数"}],"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"}}}}