vnpy-binance-pro


Namevnpy-binance-pro JSON
Version 2023.6.20.1 PyPI version JSON
download
home_pagehttps://github.com/monk-after-90s/vnpy-binance-pro
SummaryBINANCE gateway for vn.py quant trading framework.
upload_time2023-06-20 09:45:43
maintainer
docs_urlNone
authorantas
requires_python
licenseMIT
keywords quant quantitative investment trading algotrading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # vnpy-binance-pro

继承自[veighna-global/vnpy_binance](https://github.com/veighna-global/vnpy_binance)

## 说明

增加了接口的可用性,限速等

## 安装

安装需要基于3.0.0版本以上的[VN Studio](https://www.vnpy.com)。

直接使用pip命令:

```
pip install vnpy_binance_pro
```

下载解压后在cmd中运行

```
python setup.py install
```

## 使用

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

```
import vnpy_crypto
vnpy_crypto.init()

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

import vnpy_crypto
from vnpy_binance import (
    BinanceSpotGateway,
    BinanceUsdtGateway,
    BinanceInverseGateway
)


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

    event_engine = EventEngine()
    main_engine = MainEngine(event_engine)
    main_engine.add_gateway(BinanceSpotGateway)
    main_engine.add_gateway(BinanceUsdtGateway)
    main_engine.add_gateway(BinanceInverseGateway)

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

    qapp.exec()


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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/monk-after-90s/vnpy-binance-pro",
    "name": "vnpy-binance-pro",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "quant,quantitative,investment,trading,algotrading",
    "author": "antas",
    "author_email": "907333918@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/4c/1a/e3272c7a4b0195202e607df4cf58a40c921b4bb9cda3f335dfdda90dd07a/vnpy_binance_pro-2023.6.20.1.tar.gz",
    "platform": null,
    "description": "# vnpy-binance-pro\n\n\u7ee7\u627f\u81ea[veighna-global/vnpy_binance](https://github.com/veighna-global/vnpy_binance)\n\n## \u8bf4\u660e\n\n\u589e\u52a0\u4e86\u63a5\u53e3\u7684\u53ef\u7528\u6027\uff0c\u9650\u901f\u7b49\n\n## \u5b89\u88c5\n\n\u5b89\u88c5\u9700\u8981\u57fa\u4e8e3.0.0\u7248\u672c\u4ee5\u4e0a\u7684[VN Studio](https://www.vnpy.com)\u3002\n\n\u76f4\u63a5\u4f7f\u7528pip\u547d\u4ee4\uff1a\n\n```\npip install vnpy_binance_pro\n```\n\n\u4e0b\u8f7d\u89e3\u538b\u540e\u5728cmd\u4e2d\u8fd0\u884c\n\n```\npython setup.py install\n```\n\n## \u4f7f\u7528\n\n\u4ee5\u811a\u672c\u65b9\u5f0f\u542f\u52a8\uff08script/run.py\uff09\uff1a\n\n```\nimport vnpy_crypto\nvnpy_crypto.init()\n\nfrom vnpy.event import EventEngine\nfrom vnpy.trader.engine import MainEngine\nfrom vnpy.trader.ui import MainWindow, create_qapp\n\nimport vnpy_crypto\nfrom vnpy_binance import (\n    BinanceSpotGateway,\n    BinanceUsdtGateway,\n    BinanceInverseGateway\n)\n\n\ndef main():\n    \"\"\"\u4e3b\u5165\u53e3\u51fd\u6570\"\"\"\n    qapp = create_qapp()\n\n    event_engine = EventEngine()\n    main_engine = MainEngine(event_engine)\n    main_engine.add_gateway(BinanceSpotGateway)\n    main_engine.add_gateway(BinanceUsdtGateway)\n    main_engine.add_gateway(BinanceInverseGateway)\n\n    main_window = MainWindow(main_engine, event_engine)\n    main_window.showMaximized()\n\n    qapp.exec()\n\n\nif __name__ == \"__main__\":\n    main()\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "BINANCE gateway for vn.py quant trading framework.",
    "version": "2023.6.20.1",
    "project_urls": {
        "Homepage": "https://github.com/monk-after-90s/vnpy-binance-pro"
    },
    "split_keywords": [
        "quant",
        "quantitative",
        "investment",
        "trading",
        "algotrading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de74b91ca6ac2a87020ea1fa161af4cbf96a97746015dac68afae60a07f6245e",
                "md5": "51d657d1225fa99054f471275f18518b",
                "sha256": "024537d1928b73033bd579ea6f005780cada2f579fde73406d29516561a019e1"
            },
            "downloads": -1,
            "filename": "vnpy_binance_pro-2023.6.20.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "51d657d1225fa99054f471275f18518b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 25981,
            "upload_time": "2023-06-20T09:45:41",
            "upload_time_iso_8601": "2023-06-20T09:45:41.860354Z",
            "url": "https://files.pythonhosted.org/packages/de/74/b91ca6ac2a87020ea1fa161af4cbf96a97746015dac68afae60a07f6245e/vnpy_binance_pro-2023.6.20.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4c1ae3272c7a4b0195202e607df4cf58a40c921b4bb9cda3f335dfdda90dd07a",
                "md5": "e2f00b8cdf8eec6fa92ebec8d412b1de",
                "sha256": "7f5e98575c019078a7f66d10372a15cd256d884577b699eb2cde67957f75f618"
            },
            "downloads": -1,
            "filename": "vnpy_binance_pro-2023.6.20.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e2f00b8cdf8eec6fa92ebec8d412b1de",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 18496,
            "upload_time": "2023-06-20T09:45:43",
            "upload_time_iso_8601": "2023-06-20T09:45:43.520877Z",
            "url": "https://files.pythonhosted.org/packages/4c/1a/e3272c7a4b0195202e607df4cf58a40c921b4bb9cda3f335dfdda90dd07a/vnpy_binance_pro-2023.6.20.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-20 09:45:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "monk-after-90s",
    "github_project": "vnpy-binance-pro",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "vnpy-binance-pro"
}
        
Elapsed time: 0.14666s