代碼: 選擇全部
kbars = api.kbars(
contract=api.Contracts.Indexs.TSE.TSE001,
start='2022-08-19',
end='2022-08-19'
)
df = pd.DataFrame({**kbars})
df.ts = pd.to_datetime(df.ts)
df
15408.78 15408.78 15408.78 2022-08-19 13:30:00 15408.78 660273 4.298567e+10