Giter Site home page Giter Site logo

qactpbeebroker's Introduction

QUANTAXIS CTPBEE BROKER

quantaxis的 ctpbee https://github.com/somewheve/ctpbee/ 对接

ctpbee这个项目用的太爽了...再次感谢somewheve

更新时间: 2019-7-28 更新内容: 更换ctpbee到0.2+的行情支持

pip install QACTPBeeBroker

开发版本使用

pip install git+https://github.com/yutiansut/QACTPBeeBroker

具体使用方法:

QACTPBEE --userid xxxx --password xxxx --brokerid xxxx --mdaddr xxxxx --tdaddr xxxx --appid xxx --authcode xxxx

默认给出的是一个simnow的连接参数, 你可以快速使用

QACTPBEE --userid 你的simnow账户  --password 你的simnow密码

qactpbeebroker's People

Contributors

somewheve avatar yutiansut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

qactpbeebroker's Issues

使用QACTPBEE --userid 133496出错

要使用如下指令:
QACTPBEE --userid 133496
但发现QACTPBeeBroker没安装。安装如下软件包
#pip install https://github.com/yutiansut/QACTPBeeBroker/archive/master.zip
#pip install ctpbee
Collecting ctpbee
Using cached https://files.pythonhosted.org/packages/36/95/7bd026fd24f5b9a1a35a49d9b2600fdd9ba6abfec2c314ed629f159379bf/ctpbee-0.30.3.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jo34lcm6/ctpbee/setup.py'"'"'; file='"'"'/tmp/pip-install-jo34lcm6/ctpbee/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-jo34lcm6/ctpbee/
Complete output (11 lines):
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-jo34lcm6/ctpbee/setup.py", line 6, in
from ctpbee import version
File "/tmp/pip-install-jo34lcm6/ctpbee/ctpbee/init.py", line 8, in
from ctpbee.app import CtpBee
File "/tmp/pip-install-jo34lcm6/ctpbee/ctpbee/app.py", line 13, in
from ctpbee.constant import Exchange
File "/tmp/pip-install-jo34lcm6/ctpbee/ctpbee/constant.py", line 5, in
from dataclasses import dataclass, asdict
ModuleNotFoundError: No module named 'dataclasses'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
发现ctpbee出错。请求帮助?

在py3.7中安装QACTPBeeBroker中出现的问题

  • 当我安装时,弹出了ERROR: Package 'dataclasses' requires a different Python: 3.7.6 not in '>=3.6, <3.7'报错
  • 看了下ericvsmith/dataclasses的兼容性说明,dataclasses因为在3.7里是内置模块,所以这个项目只支持到3.6的版本
  • ctpbee后续的版本已经对python的版本做了判断,但是qactpbeebroker的中,ctpbee的版本被限制在了0.31.2,应该是在0.31.2的时候,还未加上python版本的判断,所以会弹出上述报错

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.