rqalpha-mod-ShiPanE
=======
`RQAlpha`_ 不支持股票实盘交易, 不过通过他的 Mod 机制,可以很方便的扩展自己的实盘交易接口。
`ShiPanE Python SDK`_ 提供了 RESTFul 接口,可以管理通达信等交易终端,因此可以实现 RQAlpha 产生的下单逻辑通过实盘易进行下单操作。
## Installation
### 安装环境
* 建议使用 Anaconda Env 来搭建 Python 虚拟环境,传送门: `基于Anaconda的环境搭建`_
* 安装 RQAlpha,参考 `RQAlpha 安装指南`_
* 更新 `lxml`
.. code-block:: bash
$ conda install -f lxml
* 安装 `rqalpha-mod-shipane`
.. code-block:: bash
$ pip install rqalpha-mod-shipane
### 安装实盘易扩展Mod
RQAlpha 提供了非常简单的 Mod 安装机制,直接使用如下命令即可完成 Mod 安装
.. code-block:: bash
# 安装实盘易Mod
$ rqalpha install shipane
# 启用实盘易Mod
$ rqalpha enable shipane
# 关闭实盘易Mod
$ rqalpha disable shipane
# 卸载实盘易Mod
$ rqalpha uninstall shipane
### FAQ
如果报如下错误
.. code-block:: bash
ImportError: dlopen(/Users/eric/anaconda/envs/rqalpha/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libxml2.2.dylib
Referenced from: /Users/eric/anaconda/envs/rqalpha/lib/python3.6/site-packages/lxml/etree.cpython-36m-darwin.so
Reason: Incompatible library version: etree.cpython-36m-darwin.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0
解决方案:
.. code-block:: bash
conda install libxml2
pip install -f lxml==3.6.4
.. _RQAlpha: https://github.com/ricequant/rqalpha
.. _ShiPanE Python SDK: https://github.com/sinall/ShiPanE-Python-SDK
.. _基于Anaconda的环境搭建: http://rqalpha.readthedocs.io/zh_CN/stable/intro/detail_install.html
.. _RQAlpha 安装指南: http://rqalpha.readthedocs.io/zh_CN/stable/intro/install.html
Metadata
Release files for rqalpha-mod-shipane 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rqalpha-mod-shipane-0.4.0.tar.gz | 4.2 kB | Without provenance | Details for rqalpha-mod-shipane-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rqalpha_mod_shipane-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for rqalpha_mod_shipane-0.4.0-py3-none-any.whl |
Total release size: 11.0 kB
Release files / rqalpha-mod-shipane-0.4.0.tar.gz
| Download URL | rqalpha-mod-shipane-0.4.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b64200f879f063b7d29f127248d42866902b025bce6b9ad5ca1bdebda6e47db
|
|
BLAKE2b-256 checksum How to use checksums |
0052f32da94d7745c62728b326d3d2362276721c6459f73c987bf740ff82b8cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / rqalpha_mod_shipane-0.4.0-py3-none-any.whl
| Download URL | rqalpha_mod_shipane-0.4.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28265fc0df952a3eeb6200d531943cf07f0ebfa477d13bd16758b233bf760783
|
|
BLAKE2b-256 checksum How to use checksums |
d2cd35f94eec4280ed84bacbd4838a41d05c6830339d2688e668dceacb915a7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rqalpha-mod-shipane 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.