Giter VIP home page Giter VIP logo

rq-data's Introduction

rq-data

获取ricequant中数据, 其中期货数据默认为vnpy格式。



准备工作:

  1. 公网IP的网络(若没有可以使用ngrok工具,详细使用方法自行google或参照本目录下的word教程)
  2. 安装配置mongodb数据库(或根据自己需求,修改rpc的回调函数,存其它数据库,或者csv)

使用步骤:

  1. 在拥有公网ip的电脑上运行rpc服务器端 rqdata/mongo/mongo_server.py,并配置其中的mongodb以及rpc服务器端口
  2. rqdata/rpc/client.py 上传到 ricequant研究中的notebook中,放到文件夹rpc下,重命名为rpc.py
  3. 在研究中新建notebook名为:test.ipynb, 并将rqdata/scripts/[future1m.py, stock1m.py, rq.py]中的某个代码copy进去,修改其中的rpc客户端地址和端口,或者参照自行编写其它数据获取代码。(vnpy格式数据代码在future1m.py中)
若手动下载直接运行第3步中代码,每日自动更新继续下述配置

准备工作:

  1. 配置selenium环境(下载chromewebdriver,并将其路径添加到环境变量PATH中,自行翻墙下载或见群文件)

使用步骤:

  1. 在`rqdata/scripts/passwd.py中配置ricequant的用户名密码
  2. driver.get("https://www.ricequant.com/research/user/user_xxxxx/notebooks/test.ipynb")中的 url路径改为步骤3中test.ipynb的路径。
  3. 运行rqdata/scripts/rice_auto.py

rq-data's People

Contributors

jaysonalbert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rq-data's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.