/ctpwrapper

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

Primary LanguagePythonOtherNOASSERTION

CTP期货 API Python Wrapper

Build Status Build status Codacy Badge pypi status pyversion implementation Downloads

CTP Website

Version: v6.3.19 P1(v6.3.19_P1_20200106)

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 365504029@qq.com