Code Monkey home page Code Monkey logo

bt-ctpbee-store's Introduction

bt_ctpbee_store

backtrader是一个非常好的开源量化回测平台,我自己也时常用它. 而ctpbee是一个很好的开源的期货CTP接口的封装,同时它也是一个基本的量化开发框架. 那么我们backtrader也可以通过ctpbee接入国内期货实盘交易.

基本流程图

这里要注意的是因为国内期货交易一个标的可以同时开多空两个仓位,操作也分为买入开多,买入平空,卖出开空,卖出平多四种操作,而backtrader的broker实现并不支持,所以我们这里直接绕过broker,不使用broker的任何功能,那这就意味着回测好的策略代码切换成实盘前要稍微进行一些修改:)

另外,如果想接入数字货币的实盘可参考bt-ccxt-store-cn

bt-ctpbee-store's People

Contributors

phonegapx avatar

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.