vnpy-tora


Namevnpy-tora JSON
Version 2024.3.22 PyPI version JSON
download
home_pagehttps://www.vnpy.com
SummaryTORA gateway for VeighNa quant trading framework.
upload_time2024-03-22 06:09:58
maintainerNone
docs_urlNone
authorXiaoyou Chen
requires_python>=3.10
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-2024.3.22-blueviolet.svg"/>
    <img src ="https://img.shields.io/badge/platform-windows|linux-yellow.svg"/>
    <img src ="https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg" />
    <img src ="https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange"/>
</p>

## 说明

基于华鑫奇点的C++ API开发,支持股票和期权交易。

股票API的版本为:

- Level1行情:v1.0.5_20230210
- 交易:v4.0.8_20230627

期权的API版本为:
- v1.3.3_20220908

API版本的详细信息,请参考[奇点官网](https://n-sight.com.cn/)。

## 安装

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

直接使用pip命令:

```
pip install vnpy_tora
```

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


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

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(ToraOptionGateway)
    main_engine.add_gateway(ToraStockGateway)

    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-tora",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "quant, quantitative, investment, trading, algotrading",
    "author": "Xiaoyou Chen",
    "author_email": "xiaoyou.chen@mail.vnpy.com",
    "download_url": "https://files.pythonhosted.org/packages/24/16/33bc5aca3984ae721a78a2a93b43e1cf59bad72b1e9bee2413c1c32ee53e/vnpy_tora-2024.3.22.tar.gz",
    "platform": null,
    "description": "# VeighNa\u6846\u67b6\u7684\u534e\u946b\u5947\u70b9\u67dc\u53f0\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-2024.3.22-blueviolet.svg\"/>\r\n    <img src =\"https://img.shields.io/badge/platform-windows|linux-yellow.svg\"/>\r\n    <img src =\"https://img.shields.io/badge/python-3.10|3.11|3.12-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\u534e\u946b\u5947\u70b9\u7684C++ API\u5f00\u53d1\uff0c\u652f\u6301\u80a1\u7968\u548c\u671f\u6743\u4ea4\u6613\u3002\r\n\r\n\u80a1\u7968API\u7684\u7248\u672c\u4e3a\uff1a\r\n\r\n- Level1\u884c\u60c5\uff1av1.0.5_20230210\r\n- \u4ea4\u6613\uff1av4.0.8_20230627\r\n\r\n\u671f\u6743\u7684API\u7248\u672c\u4e3a\uff1a\r\n- v1.3.3_20220908\r\n\r\nAPI\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u8003[\u5947\u70b9\u5b98\u7f51](https://n-sight.com.cn/)\u3002\r\n\r\n## \u5b89\u88c5\r\n\r\n\u5b89\u88c5\u73af\u5883\u63a8\u8350\u57fa\u4e8e3.9.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_tora\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_tora import ToraOptionGateway, ToraStockGateway\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(ToraOptionGateway)\r\n    main_engine.add_gateway(ToraStockGateway)\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": "TORA gateway for VeighNa quant trading framework.",
    "version": "2024.3.22",
    "project_urls": {
        "Homepage": "https://www.vnpy.com"
    },
    "split_keywords": [
        "quant",
        " quantitative",
        " investment",
        " trading",
        " algotrading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f26768099ecc3258a6fb78a01bf5290f4240bbbf44a465ebc47e12298a1b1126",
                "md5": "8d2035ceb225e8c643516c6d3764d327",
                "sha256": "f5a0485d3b862aec07cbe260c8c3493d137cf4a7640aac1528ae64c07e9c89a5"
            },
            "downloads": -1,
            "filename": "vnpy_tora-2024.3.22-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "8d2035ceb225e8c643516c6d3764d327",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 3958909,
            "upload_time": "2024-03-22T06:09:56",
            "upload_time_iso_8601": "2024-03-22T06:09:56.453814Z",
            "url": "https://files.pythonhosted.org/packages/f2/67/68099ecc3258a6fb78a01bf5290f4240bbbf44a465ebc47e12298a1b1126/vnpy_tora-2024.3.22-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "241633bc5aca3984ae721a78a2a93b43e1cf59bad72b1e9bee2413c1c32ee53e",
                "md5": "8f682dbfe463a76958b88b0b930e4896",
                "sha256": "8a660577927d166c281bf7f1727554e6d32a9bf8e92ffb27e0fb65e6331a42c7"
            },
            "downloads": -1,
            "filename": "vnpy_tora-2024.3.22.tar.gz",
            "has_sig": false,
            "md5_digest": "8f682dbfe463a76958b88b0b930e4896",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 2599068,
            "upload_time": "2024-03-22T06:09:58",
            "upload_time_iso_8601": "2024-03-22T06:09:58.175462Z",
            "url": "https://files.pythonhosted.org/packages/24/16/33bc5aca3984ae721a78a2a93b43e1cf59bad72b1e9bee2413c1c32ee53e/vnpy_tora-2024.3.22.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-22 06:09:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vnpy-tora"
}
        
Elapsed time: 0.19611s