Need help with ctpbee?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ctpbee
250 Stars 89 Forks MIT License 820 Commits 3 Opened issues

Description

个人自动交易解决方案 / 持续维护中

Services available

!
?

Need anything else?

Contributors list

ctpbee

bee bee .... for developer's trading ~

tiny but strong

ctpbee
provide a micro core of trading, you can make trade and backtest in it.

now it supports both ctp interface and backtest interface for using.

Environment Setup

# just for linux/ Generate Chinese environment
sudo ctpbee -auto generate

Origin

Quick Install

# code install 
git clone https://github.com/ctpbee/ctpbee && cd ctpbee && python3 setup.py install  

or by pip install

pip3 install ctpbee

Here is the document address

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,  # Open trading feature
}
app.config.from_mapping(info)  # loading config from dict object
app.start() 

Command Running

avatar

BackTest

support multiple instrument and multiple frequency

avatar

Development

Now I want to build stock support for

ctpbee
, if you have any interest, you can send email to me and join us!

Code Contributed

I just only accept PR code to

dev
branch, please remember that !

High Performance Version

Python version is too slow for HFT. If you need faster speed and are interested in

Rust
, please read the code of FlashFunk

IM

Due to the laziness of the main developer, fans have spontaneously formed a QQ group

521545606
.

You can join the group by search

ctpbee
or
521545606
in QQ and contact with them.

If you have any confusion about developing, please send email to me.

Email:

[email protected]

At last, have a good luck.

License

  • MIT

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.