{"id":16939017,"url":"https://github.com/vnpy/vnpy_xt","last_synced_at":"2025-03-22T12:32:16.160Z","repository":{"id":206903217,"uuid":"486802111","full_name":"vnpy/vnpy_xt","owner":"vnpy","description":"VeighNa框架的迅投数据服务接口","archived":false,"fork":false,"pushed_at":"2025-03-14T08:51:47.000Z","size":155,"stargazers_count":13,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-14T09:36:01.462Z","etag":null,"topics":["datafeed","vnpy"],"latest_commit_sha":null,"homepage":"https://www.vnpy.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vnpy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-29T01:40:35.000Z","updated_at":"2025-03-14T08:51:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"0779a062-fa12-4ff4-aa05-40265b98e699","html_url":"https://github.com/vnpy/vnpy_xt","commit_stats":{"total_commits":116,"total_committers":2,"mean_commits":58.0,"dds":0.2931034482758621,"last_synced_commit":"f8fc97d543e3f5b3daf12648874427dc2abf6537"},"previous_names":["vnpy/vnpy_xt"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_xt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_xt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_xt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_xt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnpy","download_url":"https://codeload.github.com/vnpy/vnpy_xt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959444,"owners_count":20538625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datafeed","vnpy"],"created_at":"2024-10-13T21:03:24.499Z","updated_at":"2025-03-22T12:32:16.114Z","avatar_url":"https://github.com/vnpy.png","language":"Python","readme":"# VeighNa框架的迅投研数据服务接口\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src =\"https://vnpy.oss-cn-shanghai.aliyuncs.com/vnpy-logo.png\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src =\"https://img.shields.io/badge/version-1.2.5-blueviolet.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/platform-windows-yellow.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg\" /\u003e\n    \u003cimg src =\"https://img.shields.io/github/license/vnpy/vnpy.svg?color=orange\"/\u003e\n\u003c/p\u003e\n\n## 说明\n\n基于迅投XtQuant封装开发的实时行情和数据服务接口，支持以下中国金融市场的K线和Tick数据：\n\n* 股票、基金、债券、ETF期权：\n  * SSE：上海证券交易所\n  * SZSE：深圳证券交易所\n* 期货、期货期权：\n  * CFFEX：中国金融期货交易所\n  * SHFE：上海期货交易所\n  * DCE：大连商品交易所\n  * CZCE：郑州商品交易所\n  * INE：上海国际能源交易中心\n  * GFEX：广州期货交易所\n\n\n## 安装\n\n安装环境推荐基于3.9.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com/)】。\n\n直接使用pip命令：\n\n```\npip install vnpy_xt\n```\n\n\n或者下载解压后在cmd中运行：\n\n```\npip install .\n```\n\n## 使用\n\n迅投数据试用账号申请链接：[VeighNa社区专属14天试用权限](https://xuntou.net/#/signup?utm_source=vnpy)\n\n**Token连接**\n\n1. 连接前请先确保xtquant模块可以正常加载（在[投研知识库](http://docs.thinktrader.net/)下载xtquant的安装包，解压后放置xtquant包到自己使用的Python环境的site_packages文件夹下）。\n2. 登录[迅投研服务平台](https://xuntou.net/#/userInfo)，在【用户中心】-【个人设置】-【接口TOKEN】处获取Token。\n3. 在VeighNa Trader的【全局配置】处进行数据服务配置：\n    * datafeed.name：xt\n    * datafeed.username：token\n    * datafeed.password：填复制的Token\n\n**客户端连接**\n\n1. 连接请先登录迅投极速交易终端，同时确保xtquant模块可以正常加载（点击【下载Python库】-【Python库下载】，下载完成后拷贝“Python库路径”下Lib\\site-packages文件夹中的xtquant包到自己使用的Python环境的site_packages文件夹下）。\n2. 在Veighna Trader的【全局配置】处进行数据服务配置：\n    * datafeed.name：xt\n    * datafeed.username：client\n    * datafeed.password：留空\n3. 请注意以客户端方式连接时，需要保持迅投客户端的运行。\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_xt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnpy%2Fvnpy_xt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_xt/lists"}