通过akshare获取股票分钟数据

参考:https://blog.csdn.net/qnloft/article/details/131218295

import akshare as ak

个股的

df = ak.stock_zh_a_hist_min_em(symbol=“000001”, start_date=“2023-11-03 09:30:00”, end_date=“2023-11-03 15:00:00”, period=‘1’, adjust=‘’)
print(df)
date_info= df[‘时间’].tolist()

print(date_info)

stock_price=df[‘收盘’].tolist()
print(date_info,stock_price)

你可能感兴趣的:(数据库,开发语言,python)