Giter Club home page Giter Club logo

openctp-ctp-channels's Introduction

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 7x24环境

支持通道

  • openctp TTS(tts/tts-s)

    详情跳转1 详情跳转2

    TTS仿真环境没有提供行情服务,需要连接实盘行情(连接实盘行情不需要替换dll/so), 因此多了一个 tts-s 通道

    tts 通道用于连接 TTS 7x24 环境; tts-s 通道用于连接 TTS 仿真环境

    version win x86 win x64 linux x64
    6.3.15 ✔️ ✔️ ✔️
    6.3.19 ✔️ ✔️ ✔️
    6.5.1 ✔️ ✔️ ✔️
    6.6.1 ✔️ ✔️ ✔️
    6.6.7 ✔️ ✔️ ✔️
    6.6.9 ✔️ ✔️ ✔️
    6.7.0 ✔️ ✔️ ✔️
    6.7.1 ✔️ ✔️ ✔️
    6.7.2 ✔️ ✔️ ✔️
  • 华鑫证券奇点股票(tora)

    详情跳转

    version win x86 win x64 linux x64
    6.3.15 ✔️ ✔️ ✔️
    6.3.19 ✔️ ✔️ ✔️
    6.5.1 ✔️ ✔️ ✔️
    6.6.1 ✔️ ✔️ ✔️
    6.6.7 ✔️ ✔️ ✔️
    6.6.9 ✔️ ✔️ ✔️
  • 东方财富EMT(emt)

    详情跳转

    version win x64 linux x64
    6.3.15 ✔️
    6.3.19 ✔️
    6.5.1 ✔️
    6.6.1 ✔️
    6.6.7 ✔️
  • 中泰证券XTP(xtp)

    详情跳转

    version win x86 win x64 linux x64
    6.6.1 ✔️
  • 新浪财经(sina)
    只能查询行情,不可以交易,详情跳转

    version win x86 win x64 linux x64
    6.3.15 ✔️ ✔️ ✔️
    6.3.19 ✔️ ✔️ ✔️
    6.5.1 ✔️ ✔️ ✔️
    6.6.1 ✔️ ✔️ ✔️
    6.6.7 ✔️
  • 腾讯财经(qq)
    只能查询行情,不可以交易,详情跳转

    version win x86 win x64 linux x64
    6.3.15 ✔️ ✔️ ✔️
    6.3.19 ✔️ ✔️ ✔️
    6.5.1 ✔️ ✔️ ✔️
    6.6.1 ✔️ ✔️ ✔️
    6.6.7 ✔️
  • 易盛

  • 易达

  • 量投QDP

代码示例

todo...

注意

  • openctp-ctp 在被使用中时,无法切换通道
  • 如果开启了网络代理,切换通道可能失败,关闭代理重试

openctp-ctp-channels's People

Contributors

jedore avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.