Skip to content

openctp/openctp-ctp-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python版CTPAPI

直接使用

openctp提供了pip install和文件下载两种方法安装CTPAPI-Python库,可以直接使用,均支持6.3.15~6.7.2各个版本。

pip install方式

pip install openctp-ctp==6.3.15.* -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn

文件下载方式

CTPAPI-Python接口下载

自己编译

CTPAPI-Python使用Swig技术开发,可以自己按以下步骤编译,需要安装swig等组件,详细攻略见:CTPAPI-Python开发攻略

Windows编译

本仓库选用的是CTPAPI-6.3.15,如需编译其它版本,请下载相应的CTPAPI文件覆盖对应目录下的CTPAPI文件。

Win32

cd CTPAPI
mkdir build
cd build
cmake ..
cmake --build . --config Release

Win64

cd CTPAPI
mkdir build
cd build
cmake -A x64 ..
cmake --build . --config Release

Linux编译

cd CTPAPI
mkdir build
cd build
cmake ..
cmake --build . --config Release

About

CTPAPI的Python接口,使用Swig技术制作,支持pip install。

Topics

Resources

License

Stars

Watchers

Forks