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

About the developer

nooperpudd
271 Stars 101 Forks GNU Lesser General Public License v3.0 489 Commits 8 Opened issues

Description

上海期货交易所CTP接口 Shanghai Future CTP Interface CTP Python API Wrapper

Services available

!
?

Need anything else?

Contributors list

# 229,542
trading...
C++
C
ctp
66 commits

CTP期货 API Python Wrapper

Build Status Build status Codacy Badge pypi status pyversion implementation Downloads

CTP Website

Version: v6.5.1 P1(v6.5.1 20200908)

Platform: Linux 64bit, Windows 64bit

Python Requirement: x86-64

Especially Support PyPy3-3.6 Linux 64bit

Inspire By lovelylain

Install

Before you install ctpwrapper package, you need to make sure you have already install cython package.

>>>pip install cython --upgrade
>>>pip install ctpwrapper --upgrade

Donate [捐助]

⚠️⚠️ notice ⚠️⚠️

sometimes quote the market futures data, but there is no trading data from the API stream, better just add

time.sleep(2)
func call after
Init()
method invoked, this could help to solve no data response issue.

Demo

sample code samples

Documentation

CTP documentation can be found in the docs

Contact

If you have any question about the ctpwrapper API, contact [email protected]

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.