Metadata-Version: 1.1
Name: shipane_sdk
Version: 1.0.0a8
Summary: 实盘易（ShiPanE）Python SDK，通达信自动化交易 API。
Home-page: https://github.com/sinall/ShiPanE-Python-SDK
Author: sinall
Author-email: gaoruinan@163.com
License: MIT
Description: ShiPanE-Python-SDK

        ==================

        

        实盘易（ShiPanE）Python SDK，通达信自动化交易 API。

        

        | 实盘易是\ `爱股网 <http://www.iguuu.com>`__\ 旗下的股票自动化解决方案；可管理通达信等交易终端，并为用户提供基于

          HTTP 协议的 RESTFul service。

        | 详情见：http://www.iguuu.com/e

        | 交流QQ群：11527956 |实盘易-股票自动交易|

        

        功能介绍

        --------

        

        - 简单的实盘易 HTTP API 封装，见 shipane_sdk/client.py

        - 多账号自动新股申购（自动打新）

        - 聚宽集成

        

        定时任务调度

        --------------

        

        - 多账号自动新股申购（自动打新）

        - 聚宽跟单（抓取方式）

        

        安装

        ~~~~

        

        Windows

        ^^^^^^^

        

        - 安装 Python 3.5（建议安装 Anaconda3）

        - cmd 中运行：pip install --no-binary shipane_sdk shipane_sdk

        - cmd 中运行：explorer %UserProfile%\\.shipane_sdk

        - 进入 config 目录；将 scheduler-example.ini 拷贝为 scheduler.ini；并修改内容（建议使用Notepad++）

        - 找到 python 安装目录，例如：C:\\Program Files\\Anaconda3

        - cmd 下执行（具体路径自行修改）：python "C:\\Program Files\\Anaconda3\\Scripts\\shipane-scheduler.py"

        

        Mac/Linux

        ^^^^^^^^^

        

        - 安装 Python 3.5

        - terminal 中运行：pip install --no-binary shipane_sdk shipane_sdk

        - terminal 中运行：cp -n ~/.shipane_sdk/config/scheduler-example.ini ~/.shipane_sdk/config/scheduler.ini

        - 修改 ~/.shipane_sdk/config/scheduler.ini

        - terminal 中运行：shipane-scheduler.py

        

        升级

        ~~~~~

        

        pip install --upgrade --no-deps --no-binary shipane_sdk shipane_sdk

        

        配置

        ~~~~~

        

        定时任务默认禁用；如需启动，请设置 enabled=true

        

        聚宽集成

        --------

        

        一. 推送方式

        ~~~~~~~~~~~~

        

        适用于云服务器环境，例如阿里云；特点是稳定、高效，集成简单。

        

        先决条件

        ^^^^^^^^

        

        -  部署实盘易成功。

        -  手动测试通过。

        -  聚宽（公网）可访问实盘易。

        

        步骤

        ^^^^

        

        -  将 shipane\_sdk/client.py 上传至聚宽“投资研究”根目录，并重命名为 shipane\_sdk.py。

        -  将 shipane\_sdk/joinquant/executor.py 追加到 shpane\_sdk.py 中。

        -  用法请参考 examples/joinquant/simple\_strategy.py (注意将其中的 xxx.xxx.xxx.xxx 替换为实际 IP)。

        

        二. 抓取方式

        ~~~~~~~~~~~~

        

        无需云服务器，采用定时轮询的方式，实时性不如"推送方式"。

        

        先决条件

        ^^^^^^^^

        

        -  部署实盘易成功。

        -  手动测试通过。

        

        步骤

        ^^^^

        

        见 `定时任务调度 <#定时任务调度>`__

        

        其他语言 SDK

        ------------

        

        C# SDK

        ~~~~~~

        

        | 由网友 @YBO（QQ：259219140）开发。

        | 见 `ShiPanETradingSDK <http://git.oschina.net/ybo1990/ShiPanETradingSDK>`_

        

        .. |实盘易-股票自动交易| image:: http://pub.idqqimg.com/wpa/images/group.png

           :target: http://shang.qq.com/wpa/qunwpa?idkey=1ce867356702f5f7c56d07d5c694e37a3b9a523efce199bb0f6ff30410c6185d%22

        
Keywords: ShiPanE SDK 通达信 TDX Automation
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
