代码拉取完成,页面将自动刷新
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
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。