AKShare-現(xiàn)貨數(shù)據(jù)-上海黃金交易所

作者寄語
本次更新上海黃金交易所的所有品種的日頻率歷史數(shù)據(jù),通過該接口可以獲取指定品種的所有歷史數(shù)據(jù)。
更新接口
"stock_repurchase_em" ?# 上海黃金交易所-歷史行情數(shù)據(jù)
歷史行情數(shù)據(jù)
接口: spot_hist_sge
目標(biāo)地址: https://www.sge.com.cn/sjzx/mrhq
描述: 上海黃金交易所-數(shù)據(jù)資訊-行情走勢-歷史數(shù)據(jù)
限量: 單次返回指定 symbol 的所有歷史數(shù)據(jù)
輸入?yún)?shù)
| 名稱 | 類型 | 描述 |
|---|---|---|
| symbol | str | symbol="Au99.99"; 可以通過 ak.spot_symbol_list_sge() 獲取該品種列表 |
輸出參數(shù)
| 名稱 | 類型 | 描述 |
|---|---|---|
| date | object | - |
| open | float64 | - |
| close | float64 | - |
| high | float64 | - |
| low | float64 | - |
接口示例
import?akshare?as?ak
spot_hist_sge_df?=?ak.spot_hist_sge(symbol='Au99.99')
print(spot_hist_sge_df)
數(shù)據(jù)示例
??????????date????open????close????high?????low
0?????2016-12-19??262.45??262.76??262.02??263.50
1?????2016-12-20??262.88??262.06??261.42??263.70
2?????2016-12-21??262.40??260.97??258.60??262.65
3?????2016-12-22??261.18??260.00??259.05??261.18
4?????2016-12-23??258.95??260.07??258.70??260.37
??????????...?????...?????...?????...?????...
1200??2021-11-30??369.01??368.51??367.25??369.50
1201??2021-12-01??369.00??367.32??364.75??371.00
1202??2021-12-02??368.18??365.55??365.20??368.18
1203??2021-12-03??365.99??365.16??363.70??367.60
1204??2021-12-06??366.56??367.99??363.59??368.00
評論
圖片
表情
