Skip to content

Latest commit

 

History

History
97 lines (73 loc) · 2.21 KB

README_EN.MD

File metadata and controls

97 lines (73 loc) · 2.21 KB

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