1 Star 5 Fork 1

qt-wonder / ctpbee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_EN.MD 2.21 KB
一键复制 编辑 原始数据 按行查看 历史
via 提交于 2019-09-10 18:39 . delete any thing

ctpbee

bee bee .... created for secondary development ~~

ctpbee just provide a micro framework, you can extent the function by this tiny core. of course your programm

ctpbee

Before you start

# just for linux 
sudo locale-gen zh_CN.GB18030

Download the code

git clone https://github.com/somewheve/ctpbee

Origin

Install

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

or   

pip3 install ctpbee 

Docker

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

Documention

local generated: 1. git clone https://github.com/somewheve/ctpbee 2. pip3 install sphinx 3. cd ./ctpbee/docs && make html 4. you can see the index.html at /build/html, just use web browser to open it
Online docs

Function

  • k-line data support
  • time-shared data support
  • trade support
  • market support
  • multiple style of sending order
  • multi-account support
  • apply penetrating interface
  • generate the order fastly
  • risk level
  • documentary signal
  • multiplex market comparison
  • optimizing code
  • establishment of back measuring system
  • cta support

Quick start

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() 

More

read the examples

End

If this is helpful for you, click the star to support me. QAQ, if you want to communicate together just click if you have a Tencent QQ Account

1
https://gitee.com/qt-wonder/ctpbee.git
git@gitee.com:qt-wonder/ctpbee.git
qt-wonder
ctpbee
ctpbee
master

搜索帮助