bee bee .... there is an industrious bee created ~~
ctpbee just provide a tiny core, you can extent the function by programming
Using Old Interface
sudo locale-gen zh_CN.GB18030
git clone https://github.com/somewheve/ctpbee
- Derived from vnpy
git clone https://github.com/somewheve/ctpbee & cd ctpbee & python3 setup.py install
or
pip3 install ctpbee
- k-line data support
- time-shared data support
- trade support
- market support
- monitor
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()
for README in English please see 戳我戳我
document is developing.... just waiting for it.
for more information , please see the wiki or read the examples
- To optimize code
- Example created
- Add local position
If this is helpful for you, click the star to support me. QAQ