VeighNa框架的迅投数据服务接口
说明
基于迅投XtQuant封装开发的实时行情和数据服务接口,支持以下中国金融市场的K线和Tick数据:
- 股票、基金、债券、ETF期权:
- SSE:上海证券交易所
- SZSE:深圳证券交易所
- 期货、期货期权:
- CFFEX:中国金融期货交易所
- SHFE:上海期货交易所
- DCE:大连商品交易所
- CZCE:郑州商品交易所
- INE:上海国际能源交易中心
- GFEX:广州期货交易所
安装
安装环境推荐基于4.0.0版本以上的【VeighNa Studio】。
直接使用pip命令:
pip install vnpy_xtdata
或者下载解压后在cmd中运行:
pip install .
使用
Token连接
- 连接前请先确保xtquant模块可以正常加载(在投研知识库下载xtquant的安装包,解压后放置xtquant包到自己使用的Python环境的site_packages文件夹下)。
- 登录迅投研服务平台,在【用户中心】-【个人设置】-【接口TOKEN】处获取Token。
- 在VeighNa Trader的【全局配置】处进行数据服务配置:
- datafeed.name:xt
- datafeed.username:token
- datafeed.password:填复制的Token
客户端连接
- 连接请先登录迅投极速交易终端,同时确保xtquant模块可以正常加载(点击【下载Python库】-【Python库下载】,下载完成后拷贝“Python库路径”下Lib\site-packages文件夹中的xtquant包到自己使用的Python环境的site_packages文件夹下)。
- 在Veighna Trader的【全局配置】处进行数据服务配置:
- datafeed.name:xt
- datafeed.username:client
- datafeed.password:留空
- 请注意以客户端方式连接时,需要保持迅投客户端的运行。
Metadata
Release files for vnpy-xtdata 2.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vnpy_xtdata-2.0.8.tar.gz | 16.4 kB | Without provenance | Details for vnpy_xtdata-2.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vnpy_xtdata-2.0.8-py3-none-any.whl | Python 3 | none | any | Details for vnpy_xtdata-2.0.8-py3-none-any.whl |
Total release size: 31.4 kB
Release files / vnpy_xtdata-2.0.8.tar.gz
| Download URL | vnpy_xtdata-2.0.8.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6369f2c1ca33b3d25b36b04313edd8992eeefb002bc5a155659bc8927fa9e5e4
|
|
BLAKE2b-256 checksum How to use checksums |
2639a6c30654414f1f69b8efdcbba32657ea64041bf9da0d34decf49778e0953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Release files / vnpy_xtdata-2.0.8-py3-none-any.whl
| Download URL | vnpy_xtdata-2.0.8-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7804f269b36a1192238fcb5e3cdef46a18d339298a49aa0a277aac47a37fbfdd
|
|
BLAKE2b-256 checksum How to use checksums |
6448b01a37de0cb24dbe987ae43c37072e89bb95c9d03b9691aada45de50cff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.14
|
Security for vnpy-xtdata 2.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.