diff --git a/examples/RQData/README.md b/examples/RQData/README.md new file mode 100644 index 00000000..81371b84 --- /dev/null +++ b/examples/RQData/README.md @@ -0,0 +1,10 @@ +### RQData数据自动更新服务 + +vn.py官方推荐的历史数据解决方案,由RiceQuant提供的高质量期货数据服务。 + +使用步骤: +1. 前往[RQData主页](https://www.ricequant.com/purchase#1),购买标准版账户或者申请试用 +2. 获得账户后将自动下载make.bat文件,在make.bat中找到name和password信息 +3. 打开config.json,在rqUsername和rqPassword中填入上述信息,并在product列表中,填入需要更新行情的期货合约产品代码(只包含英文字母即可) +4. 双击“启动更新服务.bat”,来启动RQData数据自动更新服务,点击右上角关闭按钮可最小化到右下方的托盘栏 +5. 在托盘栏图标上点击右键菜单中的“退出”可以退出程序 diff --git a/examples/DataService/RqdataDataService/config.json b/examples/RQData/config.json similarity index 100% rename from examples/DataService/RqdataDataService/config.json rename to examples/RQData/config.json diff --git a/examples/DataService/RqdataDataService/dataService.py b/examples/RQData/dataService.py similarity index 100% rename from examples/DataService/RqdataDataService/dataService.py rename to examples/RQData/dataService.py diff --git a/examples/DataService/RqdataDataService/downloadData.py b/examples/RQData/downloadData.py similarity index 100% rename from examples/DataService/RqdataDataService/downloadData.py rename to examples/RQData/downloadData.py diff --git a/examples/DataService/RqdataDataService/run.py b/examples/RQData/run.py similarity index 99% rename from examples/DataService/RqdataDataService/run.py rename to examples/RQData/run.py index 774e95b3..ce71f681 100644 --- a/examples/DataService/RqdataDataService/run.py +++ b/examples/RQData/run.py @@ -19,7 +19,7 @@ from vnpy.trader.app.ctaStrategy.ctaBase import MINUTE_DB_NAME, DAILY_DB_NAME DAY_START = time(9, 0) # 日盘启动和停止时间 -DAY_END = time(17, 15) +DAY_END = time(15, 15) NIGHT_START = time(21, 0) # 夜盘启动和停止时间 NIGHT_END = time(2, 30) diff --git a/examples/DataService/RqdataDataService/runService.py b/examples/RQData/runService.py similarity index 100% rename from examples/DataService/RqdataDataService/runService.py rename to examples/RQData/runService.py diff --git a/examples/DataService/RqdataDataService/vnpy.ico b/examples/RQData/vnpy.ico similarity index 100% rename from examples/DataService/RqdataDataService/vnpy.ico rename to examples/RQData/vnpy.ico diff --git a/examples/RQData/启动更新服务.bat b/examples/RQData/启动更新服务.bat new file mode 100644 index 00000000..900482a1 --- /dev/null +++ b/examples/RQData/启动更新服务.bat @@ -0,0 +1 @@ +pythonw run.py \ No newline at end of file