【文件属性】:
文件名称:ctpwrapper:上海期货交易所CTP接口 Shanghai Future CTP Interface CTP Python API Wrapper
文件大小:9.6MB
文件格式:ZIP
更新时间:2021-05-26 16:41:48
trading-api futures ctp shfe Python
CTP期货API Python包装器
版本:v6.5.1 P1(v6.5.1 20200908)
平台:Linux 64位,Windows 64位
Python需求:x86-64
特别支持PyPy3-3.6 Linux 64bit
灵感来自Lovelylain
安装
在安装ctpwrapper软件包之前,需要确保已安装cython软件包。
>>>pip install cython --upgrade
>>>pip install ctpwrapper --upgrade
捐赠[逐步]
:warning: :warning: 注意 :warning: :warning:
有时引用市场期货数据,但API流中没有交易数据,最好在调用Init()方法后添加time.sleep(2) func调用,这可能有助于解决无数据响应的问题。
演示版
样本代码样本
文献资料
CTP文档可以在文档中找到
接触
如果您对ctpwrapper A
【文件预览】:
ctpwrapper-master
----MANIFEST.in(195B)
----ctp()
--------win()
--------version.txt(36B)
--------linux()
--------header()
----ctpwrapper()
--------Md.py(9KB)
--------ApiStructure.py(586KB)
--------TraderApi.pyx(111KB)
--------base.py(2KB)
--------MdApi.pyx(15KB)
--------__init__.py(882B)
--------datacollect.pyx(260B)
--------Trader.py(46KB)
--------cppheader()
--------headers()
----generate_structure.py(6KB)
----generate.py(3KB)
----pypy3-Dockerfile(100B)
----images()
--------wechat.jpg(86KB)
--------alipay.png(37KB)
----Dockerfile(79B)
----requirements.txt(7B)
----doc()
--------ctp()
----.travis.yml(1KB)
----pytest.ini(127B)
----LICENSE(8KB)
----setup.cfg(56B)
----samples()
--------trader_main.py(7KB)
--------config.json(225B)
--------md_main.py(5KB)
----setup.py(5KB)
----README.md(2KB)
----makefile(548B)
----.appveyor.yml(4KB)
----tests()
--------test_structure.py(3KB)
--------test_api.py(915B)
--------__init__.py(651B)
--------server_check.py(1KB)
----.gitignore(1KB)
----extra()
--------appveyor()