Multi channels support for openctp-ctp
Project description
openctp-ctp-channels
openctp 提供了兼容各大柜台的统一 CTPAPI 兼容接口库,openctp-ctp 也继承了这个能力。
openctp-ctp-channels 简化了替换兼容接口库的过程,可以快速上手体验,连接不同的柜台环境。
快速使用
-
安装
pip install openctp-ctp-channels -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host=pypi.tuna.tsinghua.edu.cn
-
展示所有通道
$ openctp-channels show
-
展示当前通道
$ openctp-channels check Current channel: ctp
-
切换通道
$ openctp-channels switch tts Switch to tts channel. $ openctp-channels check Current channel: tts
切换通道 tts 成功后,即可使用 openctp-ctp 库连接 TTS 环境
支持通道
-
TTS(tts)
version win x86 win x64 linux x64 6.3.15 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.3.19 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.5.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.7 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.9 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.7.0 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.7.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.7.2 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: -
华鑫证券奇点TORA
version win x86 win x64 linux x64 6.3.15 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.3.19 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.5.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.7 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.9 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: -
东方财富EMT(emt)
version win x64 linux x64 6.3.15 :heavy_check_mark: :x: 6.3.19 :heavy_check_mark: :x: 6.5.1 :heavy_check_mark: :x: 6.6.1 :heavy_check_mark: :x: 6.6.7 :heavy_check_mark: :x: -
中泰证券XTP(xtp)
version win x86 win x64 linux x64 6.6.1 :x: :heavy_check_mark: :x: -
新浪财经(sina)
只能查询行情,不可以交易,详情跳转version win x86 win x64 linux x64 6.3.15 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.3.19 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.5.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.7 :x: :heavy_check_mark: :x: -
腾讯财经(qq)
只能查询行情,不可以交易,详情跳转version win x86 win x64 linux x64 6.3.15 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.3.19 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.5.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.1 :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: 6.6.7 :x: :heavy_check_mark: :x: -
易盛
-
易达
-
东方证券OST
-
量投QDP
代码示例
todo...
注意
- openctp-ctp 在被使用中时,无法切换通道
- 如果开启了网络代理,切换通道可能失败,关闭代理重试
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for openctp_ctp_channels-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64dbb47d594f27d44d6beb7a2e6c7894134f29866a6a558eff820c74507835d1 |
|
MD5 | b68ee3f901ad27b33ebc8a9858f6cd34 |
|
BLAKE2b-256 | f1661bbad8e0e0ba0689d0ec1f3d37e42402d07e4571b35dc986fee7738e1017 |
Close
Hashes for openctp_ctp_channels-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d92d7e6b321bce611a9e7a057acf5871f528f08618157139d1d2e87f33f41111 |
|
MD5 | dd839f587e58dfa2f26ee9070d127f6d |
|
BLAKE2b-256 | ccd35e34cbb3f96ea67944a67e59f204d1f0970128c11674f09e762f89819749 |