Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 1.49 KB

README_EN.MD

File metadata and controls

80 lines (57 loc) · 1.49 KB

ctpbee

bee bee .... there is an industrious bee created ~~

ctpbee just provide a tiny core, you can extent the function by programming

Using Old Interface

Before you start

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 

Function

  1. k-line data support
  2. time-shared data support
  3. trade support
  4. market support
  5. monitor

Quick start

from ctpbee import CtpBee
app = CtpBee("ctpbee", __name__) 
info = {
    "CONNECT_INFO": {
        "userid": "",
        "password": "",
        "brokerid": "",
        "md_address": "",
        "td_address": "",
        "appid": "",
        "auth_code": "",
    },
    "TD_FUNC": True,  # 开启交易功能
}
app.config.from_mapping(info)  # 载入信息
app.start()  

Documention

for README in English please see 戳我戳我

document is developing.... just waiting for it.

More

for more information , please see the wiki or read the examples

Todo

  • To optimize code
  • Example created
  • Add local position

End

If this is helpful for you, click the star to support me. QAQ