# ctpbee **Repository Path**: qwzhang01/ctpbee ## Basic Information - **Project Name**: ctpbee - **Description**: 国内期货市场量化策略框架 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2021-03-23 - **Last Updated**: 2022-01-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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. ## 环境设置 ```bash # just for linux/ Generate Chinese environment sudo ctpbee -auto generate ``` ## 灵感起源 - Thanks to [vnpy](https://github.com/vnpy/vnpy) and [flask](https://github.com/pallets/flask) ## 快速安装 ```bash # code install git clone https://github.com/ctpbee/ctpbee && cd ctpbee && python3 setup.py install # or by pip install pip3 install ctpbee ``` ## 文档信息 点击阅读 [document address](http://docs.ctpbee.com) ## 快速开始 ```python 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](source/运行.png) ## 回测截图 支持多周期多合约回测 ![avatar](source/回测.png) ## PR支持 I just only accept [PR](https://github.com/ctpbee/ctpbee/compare) code to `dev` branch, please remember that ! ## 高性能版本 对于更高性能和速度要求(PS: 别再优化Python了) 请 👉 [FlashFunk](https://github.com/HFQR/FlashFunk), ## IM Due to the laziness of the main developer, fans have spontaneously formed a QQ group`521545606`. 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