vnpy-xt


Namevnpy-xt JSON
Version 1.2.3 PyPI version JSON
download
home_pagehttps://www.vnpy.com
SummaryXuntou datafeed for VeighNa quant trading framework.
upload_time2024-10-17 13:37:42
maintainerNone
docs_urlNone
authorXiaoyou Chen
requires_pythonNone
licenseNone
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.2.3-blueviolet.svg"/>
    <img src ="https://img.shields.io/badge/platform-windows-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>

## 说明

基于迅投XtQuant封装开发的实时行情和数据服务接口,支持以下中国金融市场的K线和Tick数据:

* 股票、基金、债券、ETF期权:
  * SSE:上海证券交易所
  * SZSE:深圳证券交易所
* 期货、期货期权:
  * CFFEX:中国金融期货交易所
  * SHFE:上海期货交易所
  * DCE:大连商品交易所
  * CZCE:郑州商品交易所
  * INE:上海国际能源交易中心
  * GFEX:广州期货交易所


## 安装

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

直接使用pip命令:

```
pip install vnpy_xt
```


或者下载解压后在cmd中运行:

```
pip install .
```

## 使用

迅投数据试用账号申请链接:[VeighNa社区专属14天试用权限](https://xuntou.net/#/signup?utm_source=vnpy)

**Token连接**

1. 连接前请先确保xtquant模块可以正常加载(在[投研知识库](http://docs.thinktrader.net/)下载xtquant的安装包,解压后放置xtquant包到自己使用的Python环境的site_packages文件夹下)。
2. 登录[迅投研服务平台](https://xuntou.net/#/userInfo),在【用户中心】-【个人设置】-【接口TOKEN】处获取Token。
3. 在VeighNa Trader的【全局配置】处进行数据服务配置:
    * datafeed.name:xt
    * datafeed.username:token
    * datafeed.password:填复制的Token

**客户端连接**

1. 连接请先登录迅投极速交易终端,同时确保xtquant模块可以正常加载(点击【下载Python库】-【Python库下载】,下载完成后拷贝“Python库路径”下Lib\site-packages文件夹中的xtquant包到自己使用的Python环境的site_packages文件夹下)。
2. 在Veighna Trader的【全局配置】处进行数据服务配置:
    * datafeed.name:xt
    * datafeed.username:client
    * datafeed.password:留空
3. 请注意以客户端方式连接时,需要保持迅投客户端的运行。

            

Raw data

            {
    "_id": null,
    "home_page": "https://www.vnpy.com",
    "name": "vnpy-xt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "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/07/69/ab65b8cd59c3ea29c8bb90434e60de772b2bad2a75bc68865a7484d15ddb/vnpy_xt-1.2.3.tar.gz",
    "platform": null,
    "description": "# VeighNa\u6846\u67b6\u7684\u8fc5\u6295\u7814\u6570\u636e\u670d\u52a1\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.2.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.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\u8fc5\u6295XtQuant\u5c01\u88c5\u5f00\u53d1\u7684\u5b9e\u65f6\u884c\u60c5\u548c\u6570\u636e\u670d\u52a1\u63a5\u53e3\uff0c\u652f\u6301\u4ee5\u4e0b\u4e2d\u56fd\u91d1\u878d\u5e02\u573a\u7684K\u7ebf\u548cTick\u6570\u636e\uff1a\r\n\r\n* \u80a1\u7968\u3001\u57fa\u91d1\u3001\u503a\u5238\u3001ETF\u671f\u6743\uff1a\r\n  * SSE\uff1a\u4e0a\u6d77\u8bc1\u5238\u4ea4\u6613\u6240\r\n  * SZSE\uff1a\u6df1\u5733\u8bc1\u5238\u4ea4\u6613\u6240\r\n* \u671f\u8d27\u3001\u671f\u8d27\u671f\u6743\uff1a\r\n  * CFFEX\uff1a\u4e2d\u56fd\u91d1\u878d\u671f\u8d27\u4ea4\u6613\u6240\r\n  * SHFE\uff1a\u4e0a\u6d77\u671f\u8d27\u4ea4\u6613\u6240\r\n  * DCE\uff1a\u5927\u8fde\u5546\u54c1\u4ea4\u6613\u6240\r\n  * CZCE\uff1a\u90d1\u5dde\u5546\u54c1\u4ea4\u6613\u6240\r\n  * INE\uff1a\u4e0a\u6d77\u56fd\u9645\u80fd\u6e90\u4ea4\u6613\u4e2d\u5fc3\r\n  * GFEX\uff1a\u5e7f\u5dde\u671f\u8d27\u4ea4\u6613\u6240\r\n\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_xt\r\n```\r\n\r\n\r\n\u6216\u8005\u4e0b\u8f7d\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\u8fc5\u6295\u6570\u636e\u8bd5\u7528\u8d26\u53f7\u7533\u8bf7\u94fe\u63a5\uff1a[VeighNa\u793e\u533a\u4e13\u5c5e14\u5929\u8bd5\u7528\u6743\u9650](https://xuntou.net/#/signup?utm_source=vnpy)\r\n\r\n**Token\u8fde\u63a5**\r\n\r\n1. \u8fde\u63a5\u524d\u8bf7\u5148\u786e\u4fddxtquant\u6a21\u5757\u53ef\u4ee5\u6b63\u5e38\u52a0\u8f7d\uff08\u5728[\u6295\u7814\u77e5\u8bc6\u5e93](http://docs.thinktrader.net/)\u4e0b\u8f7dxtquant\u7684\u5b89\u88c5\u5305\uff0c\u89e3\u538b\u540e\u653e\u7f6extquant\u5305\u5230\u81ea\u5df1\u4f7f\u7528\u7684Python\u73af\u5883\u7684site_packages\u6587\u4ef6\u5939\u4e0b\uff09\u3002\r\n2. \u767b\u5f55[\u8fc5\u6295\u7814\u670d\u52a1\u5e73\u53f0](https://xuntou.net/#/userInfo)\uff0c\u5728\u3010\u7528\u6237\u4e2d\u5fc3\u3011-\u3010\u4e2a\u4eba\u8bbe\u7f6e\u3011-\u3010\u63a5\u53e3TOKEN\u3011\u5904\u83b7\u53d6Token\u3002\r\n3. \u5728VeighNa Trader\u7684\u3010\u5168\u5c40\u914d\u7f6e\u3011\u5904\u8fdb\u884c\u6570\u636e\u670d\u52a1\u914d\u7f6e\uff1a\r\n    * datafeed.name\uff1axt\r\n    * datafeed.username\uff1atoken\r\n    * datafeed.password\uff1a\u586b\u590d\u5236\u7684Token\r\n\r\n**\u5ba2\u6237\u7aef\u8fde\u63a5**\r\n\r\n1. \u8fde\u63a5\u8bf7\u5148\u767b\u5f55\u8fc5\u6295\u6781\u901f\u4ea4\u6613\u7ec8\u7aef\uff0c\u540c\u65f6\u786e\u4fddxtquant\u6a21\u5757\u53ef\u4ee5\u6b63\u5e38\u52a0\u8f7d\uff08\u70b9\u51fb\u3010\u4e0b\u8f7dPython\u5e93\u3011-\u3010Python\u5e93\u4e0b\u8f7d\u3011\uff0c\u4e0b\u8f7d\u5b8c\u6210\u540e\u62f7\u8d1d\u201cPython\u5e93\u8def\u5f84\u201d\u4e0bLib\\site-packages\u6587\u4ef6\u5939\u4e2d\u7684xtquant\u5305\u5230\u81ea\u5df1\u4f7f\u7528\u7684Python\u73af\u5883\u7684site_packages\u6587\u4ef6\u5939\u4e0b\uff09\u3002\r\n2. \u5728Veighna Trader\u7684\u3010\u5168\u5c40\u914d\u7f6e\u3011\u5904\u8fdb\u884c\u6570\u636e\u670d\u52a1\u914d\u7f6e\uff1a\r\n    * datafeed.name\uff1axt\r\n    * datafeed.username\uff1aclient\r\n    * datafeed.password\uff1a\u7559\u7a7a\r\n3. \u8bf7\u6ce8\u610f\u4ee5\u5ba2\u6237\u7aef\u65b9\u5f0f\u8fde\u63a5\u65f6\uff0c\u9700\u8981\u4fdd\u6301\u8fc5\u6295\u5ba2\u6237\u7aef\u7684\u8fd0\u884c\u3002\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Xuntou datafeed for VeighNa quant trading framework.",
    "version": "1.2.3",
    "project_urls": {
        "Homepage": "https://www.vnpy.com"
    },
    "split_keywords": [
        "quant",
        " quantitative",
        " investment",
        " trading",
        " algotrading"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4fd8a68a56e3320e7332f8c8fe9e855c332e8b20ade47c1497a7e5153b6f186f",
                "md5": "81d8ed500e72b23d9616e54824f47640",
                "sha256": "179028a51890fd102f48904bc7feb75fa9b20a52674ce9d76fc386312222c61b"
            },
            "downloads": -1,
            "filename": "vnpy_xt-1.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "81d8ed500e72b23d9616e54824f47640",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15005,
            "upload_time": "2024-10-17T13:37:41",
            "upload_time_iso_8601": "2024-10-17T13:37:41.247631Z",
            "url": "https://files.pythonhosted.org/packages/4f/d8/a68a56e3320e7332f8c8fe9e855c332e8b20ade47c1497a7e5153b6f186f/vnpy_xt-1.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0769ab65b8cd59c3ea29c8bb90434e60de772b2bad2a75bc68865a7484d15ddb",
                "md5": "9216301bf2facff00c8d5e9ea54d19f0",
                "sha256": "dc4c4f5b578741b3832ad705a1d284c7c5ca789b391f4e287118ff43021bbaa8"
            },
            "downloads": -1,
            "filename": "vnpy_xt-1.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9216301bf2facff00c8d5e9ea54d19f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14619,
            "upload_time": "2024-10-17T13:37:42",
            "upload_time_iso_8601": "2024-10-17T13:37:42.511181Z",
            "url": "https://files.pythonhosted.org/packages/07/69/ab65b8cd59c3ea29c8bb90434e60de772b2bad2a75bc68865a7484d15ddb/vnpy_xt-1.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-17 13:37:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "vnpy-xt"
}
        
Elapsed time: 1.90726s