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,非同花顺相关的已删除。
Metadata
Release files for jqktrader 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| jqktrader-0.1.4.tar.gz | 15.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jqktrader-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.4 kB
Release files / jqktrader-0.1.4.tar.gz
| Download URL | jqktrader-0.1.4.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43ef8a4ab99cfaa900b2e97ddd5f72092f5ec0437a48f4d75f21d118beee85a0
|
|
BLAKE2b-256 checksum How to use checksums |
739b66727aa4fd766d71791ac6bca3461ca2595f3645b01f26558d4b2f6ae65e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1023-azure
|
Release files / jqktrader-0.1.4-py3-none-any.whl
| Download URL | jqktrader-0.1.4-py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab46ed7df7db81d85579dba43a061e7a0030daca26fc5bf0da0f6df3771bdfea
|
|
BLAKE2b-256 checksum How to use checksums |
c0f05afc32d6c119dfe66bb63412fa62a9de0bf90719d0bdf4925440947bc00f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.10 Linux/5.15.0-1023-azure
|
Security for jqktrader 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.