Skip to main content

XSpeed ETF option gateway for VeighNa quant trading framework.

Project description

VeighNa框架的顶点飞创交易接口

说明

基于顶点飞创证券版的API接口封装开发,具体API版本为:

  • 行情:1.6.44
  • 交易:1.6.85

安装

安装环境推荐基于3.3.0版本以上的【VeighNa Studio】。

直接使用pip命令:

pip install vnpy_sec

或者下载源代码后,解压后在cmd中运行:

pip install .

使用

以脚本方式启动(script/run.py):

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

from vnpy_sec import SecGateway


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

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

    qapp.exec()


if __name__ == "__main__":
    main()

连接

如果启动时报错“ImportError: DLL load failed: 找不到指定的模块。”,可自行下载vcredist2013解决。

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_sec-1.0.3.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

vnpy_sec-1.0.3-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file vnpy_sec-1.0.3.tar.gz.

File metadata

  • Download URL: vnpy_sec-1.0.3.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • 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_sec-1.0.3.tar.gz
Algorithm Hash digest
SHA256 126360a74edcb0c74d83af35396a82ca2e99297c970e84d23e408c06e4e75015
MD5 ade5aa62e8eb8428d55834fa1de55036
BLAKE2b-256 30187b99593eb765417f71a14eda624019c222f67fd40a7ee6f7eb7bd92917e5

See more details on using hashes here.

File details

Details for the file vnpy_sec-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: vnpy_sec-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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_sec-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2e2e9c61d537ea92e0e6ecc0fcc8356a9159281a6eaefb2166a9af9c499be62
MD5 b72ead6decfde5a8bba66153cd66a3f1
BLAKE2b-256 5705e2d8cf85d6237e45d1f89b47da287b08a87723cc826e1b74c7d98d8a18fd

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