Skip to main content

Xuntou datafeed for VeighNa quant trading framework.

Project description

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

说明

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

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

安装

安装环境推荐基于3.9.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. 请注意以客户端方式连接时,需要保持迅投客户端的运行。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vnpy_xt-1.2.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

vnpy_xt-1.2.3-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file vnpy_xt-1.2.3.tar.gz.

File metadata

  • Download URL: vnpy_xt-1.2.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for vnpy_xt-1.2.3.tar.gz
Algorithm Hash digest
SHA256 dc4c4f5b578741b3832ad705a1d284c7c5ca789b391f4e287118ff43021bbaa8
MD5 9216301bf2facff00c8d5e9ea54d19f0
BLAKE2b-256 0769ab65b8cd59c3ea29c8bb90434e60de772b2bad2a75bc68865a7484d15ddb

See more details on using hashes here.

File details

Details for the file vnpy_xt-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: vnpy_xt-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for vnpy_xt-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 179028a51890fd102f48904bc7feb75fa9b20a52674ce9d76fc386312222c61b
MD5 81d8ed500e72b23d9616e54824f47640
BLAKE2b-256 4fd8a68a56e3320e7332f8c8fe9e855c332e8b20ade47c1497a7e5153b6f186f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page