2 Star 3 Fork 5

yutiansut / ctpbee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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) 点进加入群聊以了解更多

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

MIT License Copyright (c) 2019 somewheve Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

ctp行情与交易快速支持----> 展开 收起
C++
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/yutiansut/ctpbee.git
git@gitee.com:yutiansut/ctpbee.git
yutiansut
ctpbee
ctpbee
master

搜索帮助