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
# just for linux
sudo locale-gen zh_CN.GB18030
git clone https://github.com/somewheve/ctpbee
git clone https://github.com/somewheve/ctpbee & cd ctpbee & python3 setup.py install
or
pip3 install ctpbee
docker pull yutiansut/ctpbee:latest
docker run -p 5000:5000 yutiansut/ctpbee:latest
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
- 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
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()
read the examples
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