agentleFS
oopslinkoopslink/trading-skills/skills/tushare-stock/SKILL.md

tushare-stock

Skill176 starsChanged 6 months agoMITView on GitHub

Use when querying A-share individual stock data including price history, real-time quotes, capital flow, shareholders, block trades, pledges, ETF, or sector health using tushare-cli. Triggers on: 个股, 行情, 资金流向, 龙虎榜, 股东, 质押, ETF.

The file

Files
SKILL.md

tushare-stock: Individual Stock Queries

Commands

# Lookup
tushare-cli stock list                                 # all listed A-shares
tushare-cli stock list --exchange SSE                  # Shanghai only (SSE/SZSE/BSE)
tushare-cli stock list --list-status D                 # delisted stocks (L/D/P)
tushare-cli stock basic  --ts-code 000001.SZ          # stock info
tushare-cli stock search --keyword 平安银行             # find code by name

# Price history
tushare-cli stock daily  --ts-code 000001.SZ --start 20240101 --end 20240201
tushare-cli stock weekly --ts-code 000001.SZ --start 20240101

# Fundamentals (PE, PB, turnover)
tushare-cli stock daily-basic --ts-code 000001.SZ --trade-date 20240201

# Real-time / intraday
tushare-cli stock rt-k   --ts-code 000001.SZ           # real-time K-line
tushare-cli stock minute --ts-code 000001.SZ            # intraday minute bars

# Capital flow
tushare-cli stock moneyflow --ts-code 000001.SZ --trade-date 20240201

# Dragon & Tiger / institutional
tushare-cli stock top-list   --trade-date 20240201      # Dragon & Tiger list
tushare-cli stock top-inst   --trade-date 20240201      # institutional detail
tushare-cli stock holder-trade  --ts-code 000001.SZ     # insider trades
tushare-cli stock holder-number --ts-code 000001.SZ     # shareholder count

# Block trades & pledges
tushare-cli stock block-trade   --ts-code 000001.SZ
tushare-cli stock pledge-detail --ts-code 000001.SZ

# ETF
tushare-cli stock etf-daily --ts-code 159915.SZ --start 20240101

# Sector benchmark
tushare-cli stock sector-health   --ts-code 801010.SI --start 20240101
tushare-cli stock sector-strength                       # real-time strong sectors

Common Workflows

Find code by name

tushare-cli stock search --keyword 宁德时代
# → returns ts_code like 300750.SZ

Price comparison to CSV

tushare-cli --format csv stock daily --ts-code 000001.SZ --start 20240101 > ping_an.csv
tushare-cli --format csv stock daily --ts-code 600036.SH --start 20240101 > merchants.csv

Capital flow for a stock

tushare-cli stock moneyflow --ts-code 300750.SZ --trade-date 20240201

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.