-
Notifications
You must be signed in to change notification settings - Fork 2.1k
添加了导入历史行情到本地db的工具,使用单独的history表进行存储,与现有业务解耦 #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ERROR:root:database.insert_other_db_from_df处理异常:cn_stock_spot表(1170, "BLOB/TEXT column 'date' used in key specification without a key length") |
Refine ClickHouse storage restructuring details and introduce AI agent section.
(stock) zan@PC:~/stock/history_data$ python deal_agg_data4mysql.py
================================================== ================================================== ================================================== ================================================== ================================================== ================================================== ================================================== 检查数据库状态... 老板,求救,这一步解决不了 |
文件名是data_2000_2004.csv这样的格式,但代码中的正则表达式是寻找data_\w+(\d{4})(\d{4}).csv格式,这意味着它期望在data_后面有一个市场标识符(如sh/sz/bj)。 修改正则 |
大哥,还得是你呀👍 |
推荐可以使用clickhouse的版本,历史行情的数据量用mysql存查询还是太慢了。我fork后做了cliclhouse的适配 |
老板,哪个是可以用clickhouse的版本?/stock/instock/bin/run_job.sh执行的还是原版的程序。 |
收到,老板。clickhouse相关的操作都弄明白了。之后还是运行/home/zan/stock/instock/bin 下面的run_job和run_web吗? |
run_job 后出现了好多"环境变量 qg_authKey 或 qg_password 未设置"。 |
当前日期 2025-09-17 小于等于本地文件最后日期 2025-12-31,使用本地数据 |
6bca255
to
2442867
Compare
之前的issue有个老哥建了个群#479 可以进群问问。 qg_authKey 或 qg_password 未设置是代理的问题,没配置就不走代理,无所谓的 |
东财的api现在反爬太严,不太能用了,得依赖本地存储历史行情做回测。
基于baostock添加了一个使用单独的history表进行存储的爬取工具。支持导入到mysql和clickhouse