掘金社区

为甚取历史数据时,复权没有效果??Pinned highlighted

百无一用 发表在问题反馈 2021-04-01 16:58:24

问题反馈
465
3
0

today = time.strftime('%Y-%m-%d %H:%M:%S')
his_price=history_n(symbol='SHSE.512480',frequency='1d',count=30,end_time=today,df=True,adjust=ADJUST_PREV,fields='symbol,close')

print(his_price)

结果如下:
symbol close
0 SHSE.512480 2.091
1 SHSE.512480 2.083
2 SHSE.512480 2.040
3 SHSE.512480 2.025
4 SHSE.512480 2.054
5 SHSE.512480 2.028
6 SHSE.512480 1.978
7 SHSE.512480 2.056
8 SHSE.512480 2.069
9 SHSE.512480 2.065
10 SHSE.512480 2.011
11 SHSE.512480 2.000
12 SHSE.512480 1.907
13 SHSE.512480 1.801
14 SHSE.512480 1.795
15 SHSE.512480 1.856
16 SHSE.512480 1.811
17 SHSE.512480 1.735
18 SHSE.512480 1.734
19 SHSE.512480 1.769
20 SHSE.512480 1.761
21 SHSE.512480 1.758
22 SHSE.512480 1.763
23 SHSE.512480 1.761
24 SHSE.512480 1.724
25 SHSE.512480 1.734
26 SHSE.512480 0.886
27 SHSE.512480 0.887
28 SHSE.512480 0.893
29 SHSE.512480 0.926

评论: 3

Looks like your connection to 掘金量化社区 - 量化交易者的交流社区 was lost, please wait while we try to reconnect.