vnpy-rohon


Namevnpy-rohon JSON
Version 6.5.1.8 PyPI version JSON
download
home_pagehttps://www.vnpy.com
SummaryRohon gateway for VeighNa quant trading framework.
upload_time2024-04-12 00:54:42
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-6.5.1.8-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>

## 说明

基于融航期货资管系统的6.5.1接口封装开发,接口中自带的是【穿透式实盘环境】的dll文件。

## 安装

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

直接使用pip命令:

```
pip install vnpy_rohon
```


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

```
pip install .
```

使用源代码安装时需要进行C++编译,因此在执行上述命令之前请确保已经安装了【Visual Studio(Windows)】或者【GCC(Linux)】编译器。

## 使用

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

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

from vnpy_rohon import RohonGateway


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

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

    qapp.exec()


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

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.vnpy.com",
    "name": "vnpy-rohon",
    "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/3c/8f/477be213e780038ec0d895a678e1e6a80b76c3de73e29a781796b5aff199/vnpy_rohon-6.5.1.8.tar.gz",
    "platform": null,
    "description": "# VeighNa\u6846\u67b6\u7684\u878d\u822a\u8d44\u7ba1\u7cfb\u7edf\u4ea4\u6613\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-6.5.1.8-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\u878d\u822a\u671f\u8d27\u8d44\u7ba1\u7cfb\u7edf\u76846.5.1\u63a5\u53e3\u5c01\u88c5\u5f00\u53d1\uff0c\u63a5\u53e3\u4e2d\u81ea\u5e26\u7684\u662f\u3010\u7a7f\u900f\u5f0f\u5b9e\u76d8\u73af\u5883\u3011\u7684dll\u6587\u4ef6\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_rohon\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\u6e90\u4ee3\u7801\u5b89\u88c5\u65f6\u9700\u8981\u8fdb\u884cC++\u7f16\u8bd1\uff0c\u56e0\u6b64\u5728\u6267\u884c\u4e0a\u8ff0\u547d\u4ee4\u4e4b\u524d\u8bf7\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86\u3010Visual Studio\uff08Windows\uff09\u3011\u6216\u8005\u3010GCC\uff08Linux\uff09\u3011\u7f16\u8bd1\u5668\u3002\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_rohon import RohonGateway\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(RohonGateway)\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\r\n## \u8fde\u63a5\r\n \r\n\u5982\u679c\u542f\u52a8\u65f6\u62a5\u9519\u201cImportError: DLL load failed: \u627e\u4e0d\u5230\u6307\u5b9a\u7684\u6a21\u5757\u3002\u201d\uff0c\u53ef\u81ea\u884c\u4e0b\u8f7dvcredist2010\u89e3\u51b3\u3002\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Rohon gateway for VeighNa quant trading framework.",
    "version": "6.5.1.8",
    "project_urls": {
        "Homepage": "https://www.vnpy.com"
    },
    "split_keywords": [
        "quant",
        " quantitative",
        " investment",
        " trading",
        " algotrading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "601ae07a906f23625d859bcaf5c09b56fe4ee2914e9a625b2dbb35b1ad10f877",
                "md5": "cd3715a0aafb3b9f1ced24ded1e6fec0",
                "sha256": "05ec801d9ac34ce336fc7f2478450606c62623298d46d0c6b0afcd560741eae9"
            },
            "downloads": -1,
            "filename": "vnpy_rohon-6.5.1.8-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "cd3715a0aafb3b9f1ced24ded1e6fec0",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.10",
            "size": 6782786,
            "upload_time": "2024-04-12T00:54:39",
            "upload_time_iso_8601": "2024-04-12T00:54:39.596385Z",
            "url": "https://files.pythonhosted.org/packages/60/1a/e07a906f23625d859bcaf5c09b56fe4ee2914e9a625b2dbb35b1ad10f877/vnpy_rohon-6.5.1.8-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c8f477be213e780038ec0d895a678e1e6a80b76c3de73e29a781796b5aff199",
                "md5": "0557e4104e28ca5aca8479b4e7900225",
                "sha256": "43712ad9b1e517078f5bcf397444880d119e6687de53ec890f534fbcf357688f"
            },
            "downloads": -1,
            "filename": "vnpy_rohon-6.5.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "0557e4104e28ca5aca8479b4e7900225",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 5925838,
            "upload_time": "2024-04-12T00:54:42",
            "upload_time_iso_8601": "2024-04-12T00:54:42.708849Z",
            "url": "https://files.pythonhosted.org/packages/3c/8f/477be213e780038ec0d895a678e1e6a80b76c3de73e29a781796b5aff199/vnpy_rohon-6.5.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-12 00:54:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vnpy-rohon"
}
        
Elapsed time: 0.25342s