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()
Release files for vnpy_da 1.18.2.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnpy_da-1.18.2.5.2.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_da-1.18.2.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.4 kB
Release files / vnpy_da-1.18.2.5.2.tar.gz
| Download URL | vnpy_da-1.18.2.5.2.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52f5a1537e004644c03d4140e097e045d4a53e85c2a9df0cf09d0ecd0009d10d
|
|
BLAKE2b-256 checksum How to use checksums |
49ba473669f30ec77fbb02d7feebd7c3e7b131dd7d5762b1381ef906aced14aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|
Release files / vnpy_da-1.18.2.5.2-py3-none-any.whl
| Download URL | vnpy_da-1.18.2.5.2-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f06c485b7e76266193c5d3782f656b8a8f1e0a7a6d728ac5339223a93e408c5
|
|
BLAKE2b-256 checksum How to use checksums |
58594ff53f0a1e68fbf16c8ad35bf03c9b3b94b3c77360fcbe835210dafd22c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.11
|