Skip to main content

VeighNa框架的迅投研数据服务接口

说明

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

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

安装

安装环境推荐基于4.0.0版本以上的【VeighNa Studio】。

直接使用pip命令:

pip install vnpy_xt

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

pip install .

使用

迅投数据试用账号申请链接:VeighNa社区专属14天试用权限

Token连接

  1. 连接前请先确保xtquant模块可以正常加载(在投研知识库下载xtquant的安装包,解压后放置xtquant包到自己使用的Python环境的site_packages文件夹下)。
  2. 登录迅投研服务平台,在【用户中心】-【个人设置】-【接口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. 请注意以客户端方式连接时,需要保持迅投客户端的运行。

Release files for vnpy_xt 1.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vnpy_xt 1.4.6
File Size Uploaded
vnpy_xt-1.4.6.tar.gz 15.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vnpy_xt 1.4.6
File Interpreter ABI Platform
vnpy_xt-1.4.6-py3-none-any.whl Python 3 none any Details

Total release size: 31.0 kB

Release files / vnpy_xt-1.4.6.tar.gz

Download URL vnpy_xt-1.4.6.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2f727d41884875d0264bdef0f1b88ffa9708cd40bcb9088050118c79ce921e78
BLAKE2b-256 checksum
How to use checksums
f397d43062c410c87bdedf4e97ecfb6575a33ecdaee4f06f7771537b538191b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.3

Release files / vnpy_xt-1.4.6-py3-none-any.whl

Download URL vnpy_xt-1.4.6-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0cee2834cbddaa849f2432f4f3119e61d10937f51b6e2cb5ecdcbff69142a4c
BLAKE2b-256 checksum
How to use checksums
a7d4b083d430d09d0402c4ff7028cf8c7afc54e1d8b7c1be08d1bc68375767a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.3

Release history Release notifications | RSS feed

This release

1.4.6 This release

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page