GithubHelp home page GithubHelp logo

vensentzhou / puppet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raytone-d/puppet

0.0 0.0 0.0 924 KB

将交易端的界面操作包装为交易接口,UIAutomation API for trade client. QQgroup:624585416

Home Page: https://jq.qq.com/?_wv=1027&k=46XrZyY

License: MIT License

Python 100.00%

puppet's Introduction

本项目为学习WIN32 API而写,擅自将puppet用于生产环境,后果自负!

推荐一站式解决方案 【策略易】 http://www.iguuu.com/e?x=19829


快速入门:

import puppet

# 自动登录账户, comm_pwd 是可选参数
accinfo = {
    'account_no': '你的账号',
    'password': '登录密码',
    'client_path': 'path/to/xiadan.exe',
    # 'comm_pwd': '通讯密码'
}

acc = puppet.login(accinfo)

# 绑定已登录账户
acc = puppet.Account(title='')

acc.buy('000001', 12.68, 100)
acc.sell('000001', 12.68, 100)

# 只支持按代码撤单。
acc.cancel_buy('510050')
acc.cancel_all()

acc.query('historical_deal')
acc.query('position')

使用环境: 1、Python3.5及以上,强烈推荐使用Anaconda3的最新版本。

2、(不推荐!)Linux平台需安装最新的Wine,环境设为WIN7,并安装Windows平台的Anaconda3。

安装:

打开命令提示符或Windows PowerShell,然后执行:

pip install https://github.com/Raytone-D/puppet/archive/master.zip

或者

git clone https://github.com/Raytone-D/puppet.git
pip install -e puppet

技术说明:

1、本项目使用User32.dll, Kernel32.dll所涵盖的win32 API。

2、按MSDN的API说明,win32 API支持WIN2000及以上版本,建议Win 7+。

鸣谢:

///////////////////////做事有底线///////////////////////////////////////

puppet's People

Contributors

raytone-d avatar hardywu avatar vensentzhou avatar zhongjyyy 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.