spot_hist_sge
Retrieve historical Shanghai Gold Exchange spot price data for a specified symbol, such as Au99.99 or Ag(T+D), as a pandas DataFrame for analysis.
Instructions
上海黄金交易所-数据资讯-行情走势-历史数据 https://www.sge.com.cn/sjzx/mrhq :param symbol: choice of {'Au99.99', 'Au99.95', 'Au100g', 'Pt99.95', 'Ag(T+D)', 'Au(T+D)', 'mAu(T+D)', 'Au(T+N1)', 'Au(T+N2)', 'Ag99.99', 'iAu99.99', 'Au99.5', 'iAu100g', 'iAu99.5', 'PGC30g', 'NYAuTN06', 'NYAuTN12'};可以通过 ak.spot_symbol_table_sge() 获取品种表 :type symbol: str :return: 历史数据 :rtype: pandas.DataFrame
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Au99.99 |