Xtquant datafeed/pub interface.
Project description
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:留空
- 请注意以客户端方式连接时,需要保持迅投客户端的运行。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vnpy_xtdata-1.0.10.tar.gz
(13.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vnpy_xtdata-1.0.10.tar.gz.
File metadata
- Download URL: vnpy_xtdata-1.0.10.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f83679a2546b949d01a43fd54f137f7b77ae49702ddd6651361f1ed6f0ad9d9d
|
|
| MD5 |
8f574e1bad70ca8a39c151fca593f7ef
|
|
| BLAKE2b-256 |
58710003852210ad1c36fc518181cb6ec3e11ebd12c48cb7d16210c2115f59fd
|
File details
Details for the file vnpy_xtdata-1.0.10-py3-none-any.whl.
File metadata
- Download URL: vnpy_xtdata-1.0.10-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3c0b3157ec1d12ac4a5ce06290e96039d43d7e5ba6ecb80ea2be2ad99e93e5c
|
|
| MD5 |
d0fd1ded6e4527b797a58078ab47cd6f
|
|
| BLAKE2b-256 |
a6e1cd2530cd7cdf3c87f101a804acd9997788a0d2a12be922790321907c4b97
|