Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

204 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctpbee

bee bee .... there is an industrious bee created ~~

ctpbee

ctpbee 提供了一个可供使用的微框架, 你可以通过这个微小的核心来构建值得信赖的工具, 当然这需要你的编程功力。 你所需要关心的是如何编程来处理行情和交易信息即可。

开始之前

# just for linux 
sudo locale-gen zh_CN.GB18030  

起源

安装

# code install 
git clone https://github.com/somewheve/ctpbee && cd ctpbee && python3 setup.py install  

# pip install
pip3 install ctpbee

docker 快速部署

docker pull yutiansut/ctpbee:latest
docker run -p 5000:5000 yutiansut/ctpbee:latest

本地打开 localhost:5000 即可使用

文档

本地生成:

1. git clone https://github.com/somewheve/ctpbee 
2. pip3 install sphinx
3. cd ./ctpbee/docs && make html
4. 你可以在docs/build/html 下面看到index.html, 浏览器打开即可

在线: 即将推出

功能

  1. k线数据支持
  2. 分时图数据支持
  3. 交易支持
  4. 行情支持 --> 需要自己编写相应的数据库写入代码。
  5. 自由自在的发单方式
  6. 多账户支持
  7. 支持申请穿透式接口
  8. 快速下单助手
  9. 风控层建立
  10. 客户端
  11. 跟单信号

快速开始

from ctpbee import CtpBee
app = CtpBee("ctpbee", __name__) 
info = {
    "CONNECT_INFO": {
        "userid": "",
        "password": "",
        "brokerid": "",
        "md_address": "",
        "td_address": "",
        "appid": "",
        "auth_code": "",
        "product_info":""
    },
    "INTERFACE":"ctp",
    "TD_FUNC": True,  # 开启交易功能 
}
app.config.from_mapping(info)  # 从dict中载入信息 对于更多配置载入方式, 请参阅文档或者阅读代码
app.start() 

等待完成

  • 优化代码

  • 策略层对接CTA --> 即将以ctpbee_cta

  • 回测系统搭建

  • 多路行情对比

  • 再立个flag, 暑假结束之前一定推出1.0正式版!

发展计划

ctpbee主要面对开发者, 希望能得到各位大佬的支持. 后续不再开发examples. 策略以及指标等工具都以ctpbee_** 形式发布. ctpbee只提供最小的内核. 本人崇尚开源, 无论你是交易者还是程序员, 只要你有新的想法以及对开源感兴趣, 欢迎基于ctpbee 开发出新的可用工具. 我会维护一个工具列表, 指引用户前往使用.

最后一句

如果这个能帮助到你, 请点击star来支持我噢. ^_^

如果你希望贡献代码, 欢迎加群一起讨论和或者提交PR QQ群号(: 756319143) 点进加入群聊以了解更多

最后一句 ----> 祝各位大佬都能赚钱 !

About

ctp行情与交易快速支持---->

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages