1 Star 2 Fork 1

张奇文 / ctpbee

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

ctpbee

bee bee .... for developer's trading ~

tiny but strong

ctpbee provide a micro core of trading, you can make trade and backtest in it.

环境设置

# just for linux/ Generate Chinese environment
sudo ctpbee -auto generate

灵感起源

快速安装

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

# or by  pip install
pip3 install ctpbee

文档信息

点击阅读 document address

快速开始

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,  # Open trading feature
}
app.config.from_mapping(info)  # loading config from dict object
app.start() 

命令行运行截图

avatar

回测截图

支持多周期多合约回测

avatar

PR支持

I just only accept PR code to dev branch, please remember that !

高性能版本

对于更高性能和速度要求(PS: 别再优化Python了) 请 👉 FlashFunk

IM

Due to the laziness of the main developer, fans have spontaneously formed a QQ group521545606.

You can join the group by search ctpbee or 521545606 in QQ and contact with them.

If you have any confusion about developing, please send email to me.

Email: somewheve@gmail.com

At last, have a good luck.

License

  • MIT
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.

简介

国内期货市场量化策略框架 展开 收起
Python 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助