AKShare-股票數(shù)據(jù)-恐懼貪婪指數(shù)
共 1954字,需瀏覽 4分鐘
·
2024-04-20 12:54
作者寄語
本次更新股票數(shù)據(jù)-恐懼貪婪指數(shù)接口。主要修復該接口,目前該接口可以獲取 A 股 恐懼貪婪指數(shù) 數(shù)據(jù)。
歡迎加入專注于財經(jīng)數(shù)據(jù)和量化投資的【數(shù)據(jù)科學實戰(zhàn)】社區(qū),加入方式參見文末!
更新接口
-
"index_fear_greed_funddb" # 恐懼貪婪指數(shù)
恐懼貪婪指數(shù)
接口: index_fear_greed_funddb
目標地址: https://funddb.cn/tool/fear
描述: funddb-工具-估值情緒-恐懼貪婪指數(shù)
限量: 單次返回所有數(shù)據(jù)
輸入?yún)?shù)
| 名稱 | 類型 | 描述 |
|---|---|---|
| symbol | str | symbol="上證指數(shù)"; choice of {"上證指數(shù)", "滬深300"} |
輸出參數(shù)
| 名稱 | 類型 | 描述 |
|---|---|---|
| date | object | - |
| fear | float64 | 恐懼貪婪指數(shù) |
| index | float64 | - |
接口示例
import akshare as ak
index_fear_greed_funddb_df = ak.index_fear_greed_funddb(symbol="上證指數(shù)")
print(index_fear_greed_funddb_df)
數(shù)據(jù)示例
date fear index
0 2022-04-19 18.82 3194.03
1 2022-04-20 12.49 3151.05
2 2022-04-21 8.05 3079.81
3 2022-04-22 12.82 3086.92
4 2022-04-25 4.35 2928.51
.. ... ... ...
481 2024-04-12 44.23 3019.47
482 2024-04-15 51.24 3057.38
483 2024-04-16 23.72 3007.07
484 2024-04-17 50.33 3071.38
485 2024-04-18 43.90 3074.22
[486 rows x 3 columns]
歡迎加入專注于財經(jīng)數(shù)據(jù)和量化投資的知識星球【數(shù)據(jù)科學實戰(zhàn)】
評論
圖片
表情
