vnpy-hft


Namevnpy-hft JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://www.vnpy.com
SummaryGuotai Junan HFT gateway for VeighNa quant trading framework.
upload_time2022-12-14 02:21:49
maintainer
docs_urlNone
authorXiaoyou Chen
requires_python>=3.7
licenseMIT
keywords quant quantitative investment trading algotrading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # VeighNa框架的国泰君安统一交易网关接口

<p align="center">
  <img src ="https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png"/>
</p>

<p align="center">
    <img src ="https://img.shields.io/badge/version-1.0.3-blueviolet.svg"/>
    <img src ="https://img.shields.io/badge/platform-windows-yellow.svg"/>
    <img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
    <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
</p>

## 说明

基于国泰君安证券的统一接入网关API接口封装开发。

## 安装

安装环境推荐基于3.4.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。

直接使用pip命令:

```
pip install vnpy_hft
```


或者下载源代码后,解压后在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_hft import HftGateway


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

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(HftGateway)

    main_window = MainWindow(main_engine, event_engine)
    main_window.showMaximized()

    qapp.exec()


if __name__ == "__main__":
    main()
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.vnpy.com",
    "name": "vnpy-hft",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "quant,quantitative,investment,trading,algotrading",
    "author": "Xiaoyou Chen",
    "author_email": "xiaoyou.chen@mail.vnpy.com",
    "download_url": "https://files.pythonhosted.org/packages/92/d7/29acb56d4a935089d80a5f5329f2340a4b1a75a04ba19974ac7ad2170148/vnpy_hft-1.0.3.tar.gz",
    "platform": null,
    "description": "# VeighNa\u6846\u67b6\u7684\u56fd\u6cf0\u541b\u5b89\u7edf\u4e00\u4ea4\u6613\u7f51\u5173\u63a5\u53e3\r\n\r\n<p align=\"center\">\r\n  <img src =\"https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png\"/>\r\n</p>\r\n\r\n<p align=\"center\">\r\n    <img src =\"https://img.shields.io/badge/version-1.0.3-blueviolet.svg\"/>\r\n    <img src =\"https://img.shields.io/badge/platform-windows-yellow.svg\"/>\r\n    <img src =\"https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg\" />\r\n    <img src =\"https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange\"/>\r\n</p>\r\n\r\n## \u8bf4\u660e\r\n\r\n\u57fa\u4e8e\u56fd\u6cf0\u541b\u5b89\u8bc1\u5238\u7684\u7edf\u4e00\u63a5\u5165\u7f51\u5173API\u63a5\u53e3\u5c01\u88c5\u5f00\u53d1\u3002\r\n\r\n## \u5b89\u88c5\r\n\r\n\u5b89\u88c5\u73af\u5883\u63a8\u8350\u57fa\u4e8e3.4.0\u7248\u672c\u4ee5\u4e0a\u7684\u3010[**VeighNa Studio**](https://www.vnpy.com)\u3011\u3002\r\n\r\n\u76f4\u63a5\u4f7f\u7528pip\u547d\u4ee4\uff1a\r\n\r\n```\r\npip install vnpy_hft\r\n```\r\n\r\n\r\n\u6216\u8005\u4e0b\u8f7d\u6e90\u4ee3\u7801\u540e\uff0c\u89e3\u538b\u540e\u5728cmd\u4e2d\u8fd0\u884c\uff1a\r\n\r\n```\r\npip install .\r\n```\r\n\r\n## \u4f7f\u7528\r\n\r\n\u4ee5\u811a\u672c\u65b9\u5f0f\u542f\u52a8\uff08script/run.py\uff09\uff1a\r\n\r\n```\r\nfrom vnpy.event import EventEngine\r\nfrom vnpy.trader.engine import MainEngine\r\nfrom vnpy.trader.ui import MainWindow, create_qapp\r\n\r\nfrom vnpy_hft import HftGateway\r\n\r\n\r\ndef main():\r\n    \"\"\"\u4e3b\u5165\u53e3\u51fd\u6570\"\"\"\r\n    qapp = create_qapp()\r\n\r\n    event_engine = EventEngine()\r\n    main_engine = MainEngine(event_engine)\r\n    main_engine.add_gateway(HftGateway)\r\n\r\n    main_window = MainWindow(main_engine, event_engine)\r\n    main_window.showMaximized()\r\n\r\n    qapp.exec()\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    main()\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Guotai Junan HFT gateway for VeighNa quant trading framework.",
    "version": "1.0.3",
    "split_keywords": [
        "quant",
        "quantitative",
        "investment",
        "trading",
        "algotrading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "47541a8342aecfb101756646a54f1644",
                "sha256": "1124f0ec48966ecd1ef8ccfaa36c68a827b5f026a7b3b7045eede35cf5a40ef4"
            },
            "downloads": -1,
            "filename": "vnpy_hft-1.0.3-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "47541a8342aecfb101756646a54f1644",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.7",
            "size": 4708652,
            "upload_time": "2022-12-14T02:21:39",
            "upload_time_iso_8601": "2022-12-14T02:21:39.459579Z",
            "url": "https://files.pythonhosted.org/packages/2f/97/957e0a1cf9c9094df4ff6c9dbfc9d1d229c5ab800b2f381aa6abdb4f625d/vnpy_hft-1.0.3-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "5c3d82e8db4a163897821c61d9891839",
                "sha256": "0df2318dfdd078e06be90c13f458e3236cb275546c0f662d8e7508e71a89272a"
            },
            "downloads": -1,
            "filename": "vnpy_hft-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5c3d82e8db4a163897821c61d9891839",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 3896663,
            "upload_time": "2022-12-14T02:21:49",
            "upload_time_iso_8601": "2022-12-14T02:21:49.892381Z",
            "url": "https://files.pythonhosted.org/packages/92/d7/29acb56d4a935089d80a5f5329f2340a4b1a75a04ba19974ac7ad2170148/vnpy_hft-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-14 02:21:49",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "vnpy-hft"
}
        
Elapsed time: 0.01851s