3 Star 5 Fork 4

小白股市历险记/Flask

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test.py 673 Bytes
一键复制 编辑 原始数据 按行查看 历史
studyNowHa 提交于 2022-12-12 00:08 . 1.增加股份分时数据
import os
import time
import pandas as pd
import akshare as ak
import warnings
from datetime import timedelta, datetime
warnings.filterwarnings("ignore")
pd.set_option('max_rows', None)
pd.set_option('max_columns', None)
pd.set_option('expand_frame_repr', False)
pd.set_option('display.unicode.ambiguous_as_wide', True)
pd.set_option('display.unicode.east_asian_width', True)
# 输入参数
adj="hfq" # 复权类型:None未复权 qfq前复权 hfq后复权
period = "1" # 周期可选:1, 5, 15, 30, 60 分钟的数据频率。
# 利用东财实时行情数据接口获取所有股票代码接口
df=ak.stock_zh_a_spot()
code_list=df[['序号','代码','名称']].values
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/ceshijiqi/flask-for-stock.git
git@gitee.com:ceshijiqi/flask-for-stock.git
ceshijiqi
flask-for-stock
Flask
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385