Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnpy_da-1.18.2.5.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vnpy_da-1.18.2.5.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file vnpy_da-1.18.2.5.1.tar.gz.

File metadata

  • Download URL: vnpy_da-1.18.2.5.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.11

File hashes

Hashes for vnpy_da-1.18.2.5.1.tar.gz
Algorithm Hash digest
SHA256 8243acebf5138a399c6b3c52473022b9074b78cbe3e45e661a79f92341a043e7
MD5 022ca0f71449a573a0f728e07feeb8a0
BLAKE2b-256 4cc1b703854231af2504fd916373bfe21ae0fabb2b424c53fc71b692d66007ac

See more details on using hashes here.

File details

Details for the file vnpy_da-1.18.2.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for vnpy_da-1.18.2.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b5a100acbc39ad8959ad674d2326dd983d24ae9392ab14dc7bfb0e96b50d2cf
MD5 6a0988d35ef3195289c299b1572ba91b
BLAKE2b-256 41f789a89a95100efa8a073ccafc3e95cb26171f85b2edb6f8d643ea7d4bc41c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page