DA International gateway for VeighNa quant trading framework.
Project description
VeighNa框架的直达期货交易接口
说明
基于DAApi的1.18.2.5Python版本开发的直达期货交易接口。
安装
安装环境推荐基于4.0.0版本以上的【VeighNa Studio】。
直接使用pip命令:
pip install vnpy_da
或者下载源代码后,解压后在cmd中运行:
pip install .
请注意,vnpy_da需要通过pyda包加载行情API以及交易API。请通过直达国际官网-【下载】-【软件下载】-【Python API下载】下载API压缩包解压后安装对应的whl文件。
使用
以脚本方式启动(script/run.py):
from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp
from vnpy_da import DaGateway
def main():
"""主入口函数"""
qapp = create_qapp()
event_engine = EventEngine()
main_engine = MainEngine(event_engine)
main_engine.add_gateway(DaGateway)
main_window = MainWindow(main_engine, event_engine)
main_window.showMaximized()
qapp.exec()
if __name__ == "__main__":
main()
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 vnpy_da-1.18.2.5.2.tar.gz.
File metadata
- Download URL: vnpy_da-1.18.2.5.2.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52f5a1537e004644c03d4140e097e045d4a53e85c2a9df0cf09d0ecd0009d10d
|
|
| MD5 |
eebe6e1cffa3a5d88f4e81dd2c4a3712
|
|
| BLAKE2b-256 |
49ba473669f30ec77fbb02d7feebd7c3e7b131dd7d5762b1381ef906aced14aa
|
File details
Details for the file vnpy_da-1.18.2.5.2-py3-none-any.whl.
File metadata
- Download URL: vnpy_da-1.18.2.5.2-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f06c485b7e76266193c5d3782f656b8a8f1e0a7a6d728ac5339223a93e408c5
|
|
| MD5 |
fa896cf3bb8783795368af787359eb2e
|
|
| BLAKE2b-256 |
58594ff53f0a1e68fbf16c8ad35bf03c9b3b94b3c77360fcbe835210dafd22c9
|