tushare-api

tushare-api

Tushare Pro financial data API query assistant. Helps users query Chinese financial data including stocks, funds, futures, and bonds. Use this skill when users need stock market quotes, financial data, basic information, or macroeconomic data.

17stars
2forks
Updated 2/8/2026
SKILL.md
read-only
name
tushare-api
description

Tushare Pro financial data API query assistant. Helps users query Chinese financial data including stocks, funds, futures, and bonds. Use this skill when users need stock market quotes, financial data, basic information, or macroeconomic data.

Tushare API Skill

Introduction

Tushare Pro is a leading financial data platform in China, providing comprehensive financial big data including stocks, funds, futures, bonds, foreign exchange, and cryptocurrencies.

Official Website: https://tushare.pro
API Documentation: https://tushare.pro/document/2

Stock Code Format

All stock codes require a suffix:

Exchange Suffix Example
Shanghai Stock Exchange .SH 600000.SH
Shenzhen Stock Exchange .SZ 000001.SZ
Beijing Stock Exchange .BJ 835305.BJ
Hong Kong Stock Exchange .HK 00001.HK

Common API Endpoints

Basic Data

  • stock_basic - Basic stock information
  • trade_cal - Trading calendar
  • stock_company - Listed company basic information
  • new_share - IPO new share listings

Market Quotes

  • daily - Daily market data
  • weekly - Weekly market data
  • monthly - Monthly market data
  • adj_factor - Price adjustment factors
  • daily_basic - Daily indicators (PE/PB/market cap, etc.)

Financial Data

  • income - Income statement
  • balance_sheet - Balance sheet
  • cashflow - Cash flow statement
  • forecast - Performance forecasts
  • express - Express performance reports
  • dividend - Dividends and share transfers
  • fina_indicator - Financial indicators

Market Data

  • moneyflow - Individual stock money flow
  • limit_list - Daily price limit (up/down limit) stocks
  • top_list - Dragon and Tiger list (top trader data)
  • block_trade - Block trades

Usage

Python SDK

import tushare as ts

# Set token (requires user application)
pro = ts.pro_api('your_token_here')

# Get stock list
df = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')

# Get daily market data
df = pro.daily(ts_code='000001.SZ', start_date='20240101', end_date='20240201')

# Get financial data
df = pro.income(ts_code='600000.SH', start_date='20230101', end_date='20231231')

HTTP API

curl -X POST https://api.tushare.pro \
  -H "Content-Type: application/json" \
  -d '{
    "api_name": "daily",
    "token": "your_token",
    "params": {"ts_code": "000001.SZ", "start_date": "20240101"},
    "fields": "ts_code,trade_date,open,high,low,close,vol"
  }'

Credit System

  • Initial credits awarded upon registration
  • Earn credits via check-ins, sharing, data contributions, etc.
  • Different API calls consume different amounts of credits
  • Credit and rate limit mapping table: https://tushare.pro/document/1?doc_id=290

Detailed Documentation

For more endpoint details, see references/api-reference.md.

Notes

  1. Requires applying for a token before using the API.
  2. Pay attention to credit consumption; high-frequency endpoints consume more credits.
  3. Data updates have a delay; daily data is typically updated 1-2 hours after market close.
  4. Free tier users are subject to call frequency limits.