tushare
Tushare is a financial data interface that unifies access to market quotes and fundamentals through standardized APIs. It covers stocks, funds, futures, digital currencies, and corporate financials, designed for developers needing lightweight, real-time data retrieval.
Tushare provides standardized API access to financial market data including stocks, funds, futures, and cryptocurrencies.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-27
Tushare provides standardized API access to financial market data including stocks, funds, futures, and cryptocurrencies. Tushare is a financial data interface that unifies access to market quotes and fundamentals through standardized APIs. It covers stocks, funds, futures, digital currencies, and corporate financials, designed for developers needing lightweight, real-time data retrieval.
Use it when
- Yes, tushare provides real-time and historical price quotes across multiple asset classes including stocks, funds, and futures.
- Tushare offers standardized APIs to retrieve stock price history in Python.
Verify before relying
Read SKILL.md below before installing (60 files). Open directory: indexed for reading, not audited.
Install
HKUDS/Vibe-Trading/tushare · repository language: Python
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is tushare and what financial data does it provide?
Tushare is a financial data interface that unifies access to market quotes and fundamentals through standardized APIs. It covers stocks, funds, futures, digital currencies, and corporate financials, designed for developers needing lightweight, real-time data retrieval. Tushare supports Chinese and international markets, making it ideal for trading and research applications.
Can tushare retrieve real-time and historical stock price data?
Yes, tushare provides real-time and historical price quotes across multiple asset classes including stocks, funds, and futures. You can access standardized financial market data APIs through tushare to retrieve comprehensive pricing information for both Chinese and international markets in a lightweight Python format.
How do I get stock price history using tushare in Python?
Tushare offers standardized APIs to retrieve stock price history in Python. After installation and token registration, you can query historical price data across stocks, funds, and futures. The library returns data in a lightweight format suitable for integration into trading and research applications.
Does tushare support Chinese stock data and international markets?
Tushare provides comprehensive coverage of Chinese stock market data, Hong Kong stocks, US stocks, and other international markets. It delivers real-time and historical quotes through standardized APIs, making it a unified solution for accessing both domestic and global financial market data in Python.
What fundamental company data and financial indicators can tushare access?
Tushare enables retrieval of fundamental company data and financial indicators for analysis. You can access corporate financial metrics alongside market quotes, supporting comprehensive financial analysis workflows. The data is available through standardized APIs designed for easy integration into analytical and trading applications.
What license does tushare use and how do I get started?
Tushare is released under the MIT license, making it freely available for open-source and commercial use. Getting started requires installation via Python package management and token registration to access the financial data APIs. Once configured, you can immediately begin querying stocks, funds, futures, and other asset classes.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Tushare
概述
tushare是一个财经数据接口包,拥有丰富的数据内容,如股票、基金、期货、数字货币等行情数据,公司财务、基金经理等基本面数据。该模块通过标准化API方式统一了数据资产的对外服务方式,以帮助有需要的技术用户更实时、简洁、轻量的使用相关数据。
快速上手
- 安装python运行环境(推荐python3.7+),并安装tushare依赖包(推荐从清华pypi镜像安装)。
pip install tushare -i https://pypi.tuna.tsinghua.edu.cn/simple
- Tushare官网注册,获取token,并配置环境变量。 注册地址
export TUSHARE_TOKEN=your_token
- 查询Tushare接口文档,找到对应的接口。 在线数据接口文档
- 根据接口文档,使用python代码获取数据。(如股票列表接口)
import os
import tushare as ts
# 读取环境变量中的token, 或者读取本地记录的token
token = os.getenv('TUSHARE_TOKEN') or ts.get_token()
# 初始化pro接口实例
pro = ts.pro_api(token)
# 查询数据接口(*股票列表*),获取上市交易的股票列表
df = pro.stock_basic(list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
print(df)
参数格式说明
- 日期:YYYYMMDD(如 20241231)
- 股票代码:ts_code 格式(如 000001.SZ, 600000.SH)
- 返回格式:pandas DataFrame
> 链接约定:本文档内所有指向 references/ 的链接均以 技能名前缀 书写(如 tushare/references/...)。read_file 工具以 skills/
(truncated - see the full file via the links below)
File tree — 15 files
agent/src/skills/tushare/SKILL.md
agent/src/skills/tushare/references/ETF专题/ETF份额规模.md
agent/src/skills/tushare/references/ETF专题/ETF历史分钟.md
agent/src/skills/tushare/references/ETF专题/ETF基准指数.md
agent/src/skills/tushare/references/ETF专题/ETF基本信息.md
agent/src/skills/tushare/references/ETF专题/ETF复权因子.md
agent/src/skills/tushare/references/ETF专题/ETF实时分钟.md
agent/src/skills/tushare/references/ETF专题/ETF实时日线.md
agent/src/skills/tushare/references/ETF专题/ETF日线行情.md
agent/src/skills/tushare/references/债券专题/债券回购日行情.md
agent/src/skills/tushare/references/债券专题/全球财经事件.md
agent/src/skills/tushare/references/债券专题/可转债发行.md
agent/src/skills/tushare/references/债券专题/可转债基础信息.md
agent/src/skills/tushare/references/债券专题/可转债技术面因子(专业版).md
agent/src/skills/tushare/references/债券专题/可转债票面利率.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Access standardized financial market data APIs for stocks, funds, futures”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Tushare transforms conversational requests about Chinese stocks, indices, and funds into executable data retrieval and analysis. It handles market trends, financial statements, valuation metrics, capital flows, sector rotation, news, and macro data—outputting clean tables or export-ready files rather than raw results.
Tushare Data transforms conversational requests about Chinese equities into executable data workflows. Query stock trends, financials, valuations, fund flows, sector performance, and macroeconomic indicators across A-shares, indices, and ETFs—then export results as CSV or structured summaries.
This skill provides comprehensive time series analysis across equities, commodities, cryptocurrencies, ETFs, forex and indices. It integrates Tushare MCP for Chinese market data and yfinance for international assets, routing users through eight analytical domains—from stationarity testing and ARIMA forecasting to GARCH volatility modeling, cointegration analysis, portfolio optimization, and network analysis.
This skill connects your agent to stock market data through the data.diemeng.chat API, enabling queries for real-time snapshots, historical daily and intraday candles, and financial indicators across Chinese equities and other asset classes. Support includes technical indicators, fund flows, and index composition data.
Track China A-share concept sectors and Dragon Tiger List rankings via Tushare with automated markdown report generation. The skill identifies sector momentum, filters ST stocks, ranks top performers, and analyzes driving factors behind sector movements with news-driven insights.
This skill connects to Tushare Pro, a Chinese financial data platform offering stock quotes, financial statements, and market indicators. Access daily prices, earnings reports, cash flow data, and trading information across multiple exchanges including Shanghai, Shenzhen, and Hong Kong.
More skills Stock Tushare数据mcp (unlicensed) · tushare-finance (MIT) · alpha-vantage (Apache-2.0) · alpha-vantage (MIT) · akshare (MIT)