Giter Club home page Giter Club logo

hive's Introduction

Hive for ctpbee

此项目提供一个简单有效的的期货交易数据分发的应用, 同时提供了行情数据自动落地文件功能.

安装

pip install hive-c
# or 
pip install git+https://github.com/ctpbee/hive

环境要求

  • redis数据库
  • python3.6+
  • ctpbee

App

  • ctpbee交易终端 多进程模型
    • 支持分发多策略交易终端
    • 支持行情自动保存
    • 支持行情自动分发
    • 交易数据每日自动保存
    • 轻量化图表分析

如何快速执行行情落地+交易分发

  1. 在任意目录下面创建一个data文件夹,并创建config.json
  2. cddata的同级目录
  3. 执行下面的命令(可以根据参数解析自己做更改)
hive --name hive --path ./data --ff csv --cf config.json --rd 127.0.0.1:6379 --tick_save true --dispatch true

如果自己定义订阅指定行情

examples目录下提供了2个config文件, config.json订阅了全部, config_1.json则是订阅了"rb2405.SHFE", 请参阅配置文件以自定义

参数解析

  • name: 名字
  • path: tick数据文件保存目录
  • ff: 文件格式 支持 csv/parquet/h5等文件格式
  • cf: 行情交易配置文件 ->json格式
  • rd: redis链接地址
  • tick_save: 是否开启行情落地功能
  • trade_dispatch: 是否开启行情/交易分发功能

行情读取

examples下面提供了一个read.py请参阅此API 自己读取历史数据即可

License

Apache2

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.