format_standard_kline
- czsc.format_standard_kline(df: DataFrame, freq: str)[source]
格式化标准K线数据为 CZSC 标准数据结构 RawBar 列表
- Parameters:
df –
标准K线数据,DataFrame结构
dt
symbol
open
close
high
low
vol
amount
2023-11-17 00:00:00
689009.SH
33.52
33.41
33.69
33.38
1.97575e+06
6.61661e+07
2023-11-20 00:00:00
689009.SH
33.4
32.91
33.45
32.25
5.15016e+06
1.68867e+08
freq – K线级别
- Returns:
list of RawBar