Giter VIP home page Giter VIP logo

ctpbee_api's Introduction

ctpbee_api

构建统一完善的量化交易API

此处描述ctpbee里面的 API 生成

如何安装

pip3 install ctpbee_api # for linux and windows
pip3 install git+https://github.com/ctpbee/ctpbee_api # for macos

支持操作系统

  • windows ['ctp', 'rohon, 'ctp_mini']
  • macos ['ctp']
  • linux ['ctp', 'ctp_mini', rohon]

windows采用预编译进行支持

python版本:

  • python38+

对接生成指定版本的对接文件,参见ctp/generate


此底层API为vnpy的接口的集合封装, 提供一对多API对接


对接标准

setup.py 文件里面描述基本标注

  • module需要标识单个名字 rohon
  • module下面的子目录应该带 vn + rohon
  • 接口文件目录和文件命名规则 应该为 vnrohonmd + vnrohontd, vn是固定前缀 md和td为固定后缀

mac 如何工作

小心一点, mac需要从源码安装 pip3第一次安装后会编译安装成功, 第一次运行会提示不受信任的开发者 请前往隐私与安全性接受framework, ,官方framework存在一点小问题, 我是采用somewheve进行自签名的

frameworks路径在~/.ctpbee/Frameworks/

ps: 作者不擅长Mac开发 希望大佬给予pr

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.