Skip to main content

Hundsun UF2.0 gateway for vn.py quant trading framework.

Project description

VeighNa框架的恒生云UF2.0证券测试交易接口

说明

基于恒生T2SDK接口封装开发的恒生云UF2.0证券测试环境交易接口,行情数据由TuShare数据服务提供。

安装

安装需要基于3.3.0版本的【VeighNa】和Python3.7环境。

直接使用pip命令:

pip install vnpy_uf

或者下载解压后在cmd中运行:

python setup.py install

使用

以脚本方式启动:

from vnpy.event import EventEngine
from vnpy.trader.engine import MainEngine
from vnpy.trader.ui import MainWindow, create_qapp

from vnpy_uf import UfGateway


def main():
    """主入口函数"""
    qapp = create_qapp()

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(UfGateway)
    
    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()

连接

请注意,连接前请在【全局配置】处配置好TuShare数据服务。

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_uf-1.0.1.tar.gz (86.7 kB view details)

Uploaded Source

Built Distribution

vnpy_uf-1.0.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file vnpy_uf-1.0.1.tar.gz.

File metadata

  • Download URL: vnpy_uf-1.0.1.tar.gz
  • Upload date:
  • Size: 86.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for vnpy_uf-1.0.1.tar.gz
Algorithm Hash digest
SHA256 59007c310a01cd2ba556b6c10b2660be96199b9f9cefb3cc3881e3b8e2443aa1
MD5 ce88b1f1479aaa039c04ac05c3dfecc7
BLAKE2b-256 90ded8cf9908657d78108ac73e52e12b163d411f9df898ab9f055ae980002724

See more details on using hashes here.

File details

Details for the file vnpy_uf-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: vnpy_uf-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for vnpy_uf-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b893d1f238e425b9b20efd2fdc92d1a08aac322145ea1925123fa9e2d2e8cdc
MD5 d5df160bd4b2b37d35fe6f872a8d02d2
BLAKE2b-256 f7e6c8c3b379009380486e95b50d45a4ca0933a708fc1e46933bc88f4999366b

See more details on using hashes here.

Supported by

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