AkShare-期貨數(shù)據(jù)-分時(shí)數(shù)據(jù)

作者寄語(yǔ)
更新 期貨分時(shí)數(shù)據(jù) 接口,本接口主要返回近期的1, 5, 15, 30, 60 分鐘的歷史數(shù)據(jù),需要注意返回的歷史時(shí)間段比較短。
更新接口
"futures_zh_minute_sina" ?# 期貨分時(shí)數(shù)據(jù)
期貨分時(shí)數(shù)據(jù)
接口: futures_zh_minute_sina
目標(biāo)地址: http://vip.stock.finance.sina.com.cn/quotes_service/view/qihuohangqing.html#titlePos_3
描述: 獲取新浪財(cái)經(jīng)-期貨-分時(shí)數(shù)據(jù)
限量: 單次返回指定 symbol 和 period 的分時(shí)數(shù)據(jù)
輸入?yún)?shù)
| 名稱 | 類型 | 必選 | 描述 |
|---|---|---|---|
| symbol | str | Y | symbol="IF2008"; 具體合約, 可以通過(guò) match_main_contract(exchange="cffex") 獲取, 或者訪問(wèn)網(wǎng)頁(yè)獲取 |
| period | str | Y | period="1"; choice of {"1": "1分鐘", "5": "5分鐘", "15": "15分鐘", "30": "30分鐘", "60": "60分鐘"} |
輸出參數(shù)
| 名稱 | 類型 | 默認(rèn)顯示 | 描述 |
|---|---|---|---|
| date | str | Y | - |
| open | float | Y | - |
| high | float | Y | - |
| low | float | Y | - |
| close | float | Y | - |
| volume | float | Y | - |
| hold | float | Y | 持倉(cāng)量 |
接口示例
import?akshare?as?ak
futures_zh_minute_sina_df?=?ak.futures_zh_minute_sina(symbol="TF2009",?period="1")
print(futures_zh_minute_sina_df)
數(shù)據(jù)示例
?????????????????????date?????open?????high??????low????close?volume???hold
0?????2020-07-15?14:47:00??100.610??100.625??100.610??100.610?????63??45082
1?????2020-07-15?14:48:00??100.610??100.615??100.595??100.605?????45??45068
2?????2020-07-15?14:49:00??100.605??100.610??100.605??100.605?????17??45068
3?????2020-07-15?14:50:00??100.605??100.610??100.600??100.605?????49??45049
4?????2020-07-15?14:51:00??100.605??100.615??100.600??100.605?????39??45045
???????????????????...??????...??????...??????...??????...????...????...
1018??2020-07-21?14:15:00??101.065??101.095??101.065??101.090????163??43930
1019??2020-07-21?14:16:00??101.095??101.105??101.090??101.105????124??43929
1020??2020-07-21?14:17:00??101.105??101.105??101.090??101.095?????75??43931
1021??2020-07-21?14:18:00??101.095??101.095??101.080??101.080?????30??43938
1022??2020-07-21?14:19:00??101.080??101.095??101.080??101.085?????43??43941
評(píng)論
圖片
表情
