Skip to main content

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解决。

Release files for vnpy-sec 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vnpy-sec 1.0.3
File Size Uploaded
vnpy_sec-1.0.3.tar.gz 2.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for vnpy-sec 1.0.3
File Interpreter ABI Platform
vnpy_sec-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 MB

Release files / vnpy_sec-1.0.3.tar.gz

Download URL vnpy_sec-1.0.3.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
126360a74edcb0c74d83af35396a82ca2e99297c970e84d23e408c06e4e75015
BLAKE2b-256 checksum
How to use checksums
30187b99593eb765417f71a14eda624019c222f67fd40a7ee6f7eb7bd92917e5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / vnpy_sec-1.0.3-py3-none-any.whl

Download URL vnpy_sec-1.0.3-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c2e2e9c61d537ea92e0e6ecc0fcc8356a9159281a6eaefb2166a9af9c499be62
BLAKE2b-256 checksum
How to use checksums
5705e2d8cf85d6237e45d1f89b47da287b08a87723cc826e1b74c7d98d8a18fd
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page