{"id":16939132,"url":"https://github.com/vnpy/vnpy_tushare","last_synced_at":"2025-09-07T15:33:25.626Z","repository":{"id":43013820,"uuid":"405411273","full_name":"vnpy/vnpy_tushare","owner":"vnpy","description":"VeighNa框架的Tushare数据服务接口","archived":false,"fork":false,"pushed_at":"2024-07-04T05:55:05.000Z","size":40,"stargazers_count":35,"open_issues_count":0,"forks_count":25,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-26T14:08:10.370Z","etag":null,"topics":["tushare","veighna","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":"2021-09-11T15:14:52.000Z","updated_at":"2024-12-14T21:58:17.000Z","dependencies_parsed_at":"2023-12-26T00:30:55.206Z","dependency_job_id":"91f2976f-2538-447c-83ae-2f45b9cd129b","html_url":"https://github.com/vnpy/vnpy_tushare","commit_stats":{"total_commits":37,"total_committers":5,"mean_commits":7.4,"dds":0.6216216216216216,"last_synced_commit":"aa815f150f9621f848ba2b2f8a66611e2448ca25"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_tushare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_tushare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_tushare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vnpy%2Fvnpy_tushare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vnpy","download_url":"https://codeload.github.com/vnpy/vnpy_tushare/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232227769,"owners_count":18491733,"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":["tushare","veighna","vnpy"],"created_at":"2024-10-13T21:03:44.942Z","updated_at":"2025-09-07T15:33:25.612Z","avatar_url":"https://github.com/vnpy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VeighNa框架的TuShare数据服务接口\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.4.21.0-blueviolet.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg\"/\u003e\n    \u003cimg src =\"https://img.shields.io/badge/python-3.10|3.11|3.12|3.13-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基于tushare模块的1.4.21版本开发，支持以下中国金融市场的K线数据：\n\n* 期货：\n  * CFFEX：中国金融期货交易所\n  * SHFE：上海期货交易所\n  * DCE：大连商品交易所\n  * CZCE：郑州商品交易所\n  * INE：上海国际能源交易中心\n* 股票：\n  * SSE：上海证券交易所\n  * SZSE：深圳证券交易所\n  * BSE：北京证券交易所\n\n注意：需要使用相应的数据服务权限，可以通过[该页面](https://www.tushare.pro)注册使用。\n\n## 数据使用事项\n\ntushare数据源期货数据中，第一条夜盘k线数据是集合竞价数据，用户可以根据自己需求进行过滤或者合并。\n\n## 安装\n\n安装环境推荐基于4.0.0版本以上的【[**VeighNa Studio**](https://www.vnpy.com)】。\n\n直接使用pip命令：\n\n```\npip install vnpy_tushare\n```\n\n\n或者下载源代码后，解压后在cmd中运行：\n\n```\npip install .\n```\n\n\n## 使用\n\n在VeighNa中使用TuShare时，需要在全局配置中填写以下字段信息：\n\n|名称|含义|必填|举例|\n|---------|----|---|---|\n|datafeed.name|名称|是|tushare|\n|datafeed.username|用户名|否|token|\n|datafeed.password|密码|是|c3a110417f08f26d2c221edc0c50d4a8a5001502eea89cf5|\n\n\n# 单元测试\n\n单元测试代码目录为`./tests/test_*.py`\n```sh\n# 指定文件执行单元测试\npython -m unittest tests\\test_your_file_name.py\n\n# 全量执行\npython -m unittest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_tushare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvnpy%2Fvnpy_tushare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvnpy%2Fvnpy_tushare/lists"}