Metadata-Version: 2.1
Name: py-ctp
Version: 1.1.7
Summary: Python CTP futures api
Home-page: https://github.com/haifengat/hf_ctp_py_proxy
Author: HaiFeng
Author-email: haifengat@vip.qq.com
License: MIT License
Description: # hf_ctp_py_proxy
        上期技术期货交易api之python封装，实现接口调用。支持windows linux.
        
        ## 环境需求
        * VS2017
        * python 3.6+
        * 64位
        
        ## 使用说明
        * 运行 `pyton generate\\run.py` 生成所有文件
        * C++编译
            * Windows
                * 环境要求 `vs2017` `64位`
                * 设置项目为x64,否则会提示找不到windows.h
                * 打开ctp_c\\ctp.sln
                * 编译ctp_quote 和 ctp_trade项目
                * 编译后生成的dll放在dll目录下
            * Linux
                * 设置系统语言为：zh_CN.UTF-8
                * 复制文件到linux ctp_c\\*.h *.cpp 到ctp_c目录下
                * 复制 ctp_20180109\\*.so到dll目录下
                * 复制 py_ctp\\*.py到py_ctp目录下
                * 进入dll目录，执行以下指令
                    * g++ -shared -fPIC ../ctp_c/trade.cpp -o ./ctp_trade.so ./thosttraderapi.so
                    * g++ -shared -fPIC ../ctp_c/quote.cpp -o ./ctp_quote.so ./thostmduserapi.so
        * 测试
            * 执行 `copy ctp_20180109\\*.dll dll\`
            * Python
                * 运行 `python py_ctp\test_api.py`
            * C#
                * `copy cs_ctp\*.cs cs_ctp\ctp_test\`
                * 打开cs_ctp\ctp_test 项目进行调试
                * `copy cs_ctp\*.cs cs_ctp\proxy\`
                * 打开cs_ctp\proxy 项目编译.net封装
                * 打开cs_ctp\proxytest 项目测试.net封装
        
        
Platform: any
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4.0
Description-Content-Type: text/markdown
