vnpy_qmt
QMT Gateway for vnpy
实现功能
- 连接mini客户端实现普通买卖
安装方式
- 源码安装: 下载源码, 解压, 切换vnpy环境, 在cmd里执行
(vnpyO) D:\work\my>cd vnpy_qmt
(vnpyO) D:\work\my\vnpy_qmt>pip install .
启用通道
- 需要使用脚本启动方式启动vnpy, 下面是一个示例(文件名如:run.py)
- 切换到vnpy环境(或者使用vnpy对应的python绝对路径),运行
python run.py
# -*- coding:utf-8 -*-
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
# 导入QMT gateway
from vnpy_qmt.qmt_gateway import QmtGateway
from vnpy_ctastrategy import CtaEngine, CtaStrategyApp
def main():
"""Start VN Trader"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_app(CtaStrategyApp)
# 添加gateway
main_engine.add_gateway(QmtGateway, gateway_name="QMT")
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
依赖项目
使用
- 启动、登录QMT mini客户端
- 在vn.py连接QMT
Metadata
Release files for vnpy-qmt 0.3.3
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 | Actions |
|---|---|---|---|---|
| vnpy_qmt-0.3.3.tar.gz | 12.5 kB | Without provenance | Details for vnpy_qmt-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vnpy_qmt-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for vnpy_qmt-0.3.3-py3-none-any.whl |
Total release size: 25.4 kB
Release files / vnpy_qmt-0.3.3.tar.gz
| Download URL | vnpy_qmt-0.3.3.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ce80aef27b1fb18d71ab4f8032927314cd4062a749585e926bb036a35f069ee
|
|
BLAKE2b-256 checksum How to use checksums |
549e59282165125282bd77b44b2c778c566ae8d557f7c4859e911616fec1d523
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / vnpy_qmt-0.3.3-py3-none-any.whl
| Download URL | vnpy_qmt-0.3.3-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2918db71b5661333edcd4bd0bee5dab89f7aa03c54ab11478c55356f02be621
|
|
BLAKE2b-256 checksum How to use checksums |
3f0f622d958d68483d1d0dffe276d299d2c683b1bed53e1f9f91c1760c68ab73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Security for vnpy-qmt 0.3.3
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.