No project description provided
Project description
jqktrader
同花顺自动程序化交易
目的
由于easytrader年久失修,同花顺自动交易模式存在问题,此包基于easytrader部分源码,删去其他部分,只专注与同花顺客户端的自动化交易,并解决easytrader现存问题,让使用者可以开箱即用。
解决的问题
- 升级pywinauto到最新版
- 补全缺少的依赖,如
pytesseract、pypiwin32 - 修复无法自动填写输入框的各种问题
- 增加Tesseract的路径配置
安装
1. 安装 Tesseract OCR
由于程序运行过程中,需要识别验证码,请首先安装Tesseract OCR,官方下载地址:
2. 安装 jqktrader
pip install jqktrader
用法
jqktrader不维护同花顺客户端的登录状态,请手动登录后再使用。
import jqktrader
user = jqktrader.use()
user.connect(
exe_path=r'D:\同花顺软件\同花顺\xiadan.exe',
tesseract_cmd=r'D:\Program Files\Tesseract-OCR\tesseract.exe'
)
user.position
exe_path 同花顺xiadan.exe的路径
tesseract_cmd Tesseract OCR tesseract.exe的路径
API
沿用easyTrader官方的api,非同花顺相关的已删除。
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jqktrader-0.1.4.tar.gz.
File metadata
- Download URL: jqktrader-0.1.4.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1023-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43ef8a4ab99cfaa900b2e97ddd5f72092f5ec0437a48f4d75f21d118beee85a0
|
|
| MD5 |
95f20e673d623022f3e6efec1e751fb4
|
|
| BLAKE2b-256 |
739b66727aa4fd766d71791ac6bca3461ca2595f3645b01f26558d4b2f6ae65e
|
File details
Details for the file jqktrader-0.1.4-py3-none-any.whl.
File metadata
- Download URL: jqktrader-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1023-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab46ed7df7db81d85579dba43a061e7a0030daca26fc5bf0da0f6df3771bdfea
|
|
| MD5 |
75b4dc58085d1c5df634b4b0a1de5b28
|
|
| BLAKE2b-256 |
c0f05afc32d6c119dfe66bb63412fa62a9de0bf90719d0bdf4925440947bc00f
|