Tushare Data
zillionare/zillionare
面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。
Analyze A-share money flow from tick-level data using the trading-analysis CLI, with both historical and real-time modes.
$ npx skills add oopslink/trading-skills --skill trading-analysis -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install oopslink/trading-skills trading-analysis --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/oopslink/trading-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/trading-analysis .claude/skills/trading-analysis && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trading-analysis" agent skill from https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysis into .claude/skills/trading-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trading-analysis", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysisType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add oopslink/trading-skills --skill trading-analysis -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install oopslink/trading-skills trading-analysis --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/oopslink/trading-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/trading-analysis .agents/skills/trading-analysis && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trading-analysis" agent skill from https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysis into .agents/skills/trading-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trading-analysis", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add oopslink/trading-skills --skill trading-analysis -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install oopslink/trading-skills trading-analysis --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/oopslink/trading-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/trading-analysis .cursor/skills/trading-analysis && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trading-analysis" agent skill from https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysis into .cursor/skills/trading-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trading-analysis", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/oopslink/trading-skills.git --path skills/trading-analysis--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add oopslink/trading-skills --skill trading-analysis -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install oopslink/trading-skills trading-analysis --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/oopslink/trading-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/trading-analysis .gemini/skills/trading-analysis && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trading-analysis" agent skill from https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysis into .gemini/skills/trading-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trading-analysis", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install oopslink/trading-skills trading-analysisInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add oopslink/trading-skills --skill trading-analysis -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/oopslink/trading-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/trading-analysis .github/skills/trading-analysis && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trading-analysis" agent skill from https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysis into .github/skills/trading-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trading-analysis", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add oopslink/trading-skills --skill trading-analysis -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install oopslink/trading-skills trading-analysis --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/oopslink/trading-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/trading-analysis .opencode/skills/trading-analysis && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trading-analysis" agent skill from https://github.com/oopslink/trading-skills/tree/main/skills/trading-analysis into .opencode/skills/trading-analysis/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trading-analysis", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
trading-analysisAnalyze A-share money flow from tick-level data using the trading-analysis CLI, with both historical and real-time modes.
Trading Analysis is an agent skill from oopslink/trading-skills. Analyze A-share money flow from tick-level data using the trading-analysis CLI, with both historical and real-time modes. Use this skill whenever the user mentions money flow, capital flow, main force inflow/outflow, institutional buying, tick-level analysis, order size classification (super-large/large/medium/small orders), real-time monitoring of capital flow, or wants to know whether smart money is buying or selling a stock. Also use when the user asks about 资金流向, 主力资金, 大单, 超大单, 散户, 逐笔分析, or 实时监控.
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Business, Finance & HR, covering Trading and backtesting. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 81fc72f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trading Analysis loads about 2k tokens when it runs. Until then it costs about 131 tokens; SKILL.md has 610 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from oopslink/trading-skills at commit 81fc72f, republished under its MIT licence (© oopslink). 610 words, ~1,960 tokens.
.claude/skills/trading-analysis/SKILL.md (or your agent's skills folder).trading-analysis CLI
|
v
miniqmt_cli.client.transport (HTTP)
|
v
miniqmt-cli daemon (Windows, port 8765)
|
v
xtquant tick snapshots (3-second intervals)Requires: miniqmt-cli daemon running + SSH tunnel active.
Verify with miniqmt-cli health before use.
/data/ticks)lastPrice >= ask1 = active buy, <= bid1 = active sell, else neutral (split 50/50)avg_amount = delta_amount / delta_trades determines tier, delta_amount is accumulated| Tier | Average Per-Trade Amount | Label |
|---|---|---|
| Extra-large | >= 100 wan (1,000,000) | 超大单 |
| Large | 20 ~ 100 wan | 大单 |
| Medium | 4 ~ 20 wan | 中单 |
| Small | < 4 wan | 小单 |
Thresholds are configurable via --thresholds.
# Single stock, today, full trading day
trading-analysis moneyflow --code 002028.SZ
# Specify date (historical)
trading-analysis moneyflow --code 002028.SZ --date 20260416
# Custom time range
trading-analysis moneyflow --code 002028.SZ --start 093000 --end 110000
# Multiple stocks (outputs per-stock tables + ranking)
trading-analysis moneyflow --code 002028.SZ --code 000859.SZ --code 300618.SZ
# JSON output
trading-analysis moneyflow --code 002028.SZ --format json
# Custom thresholds (wan): small/medium boundary, medium/large, large/xlarge
trading-analysis moneyflow --code 002028.SZ --thresholds 4,20,100
# Use specific miniqmt-cli client config
trading-analysis moneyflow --code 002028.SZ --config ~/.miniqmt_cli/client.tomlPolls the daemon for latest tick snapshots every N seconds, accumulates deltas into a running summary, and displays via Rich Live (in-place terminal refresh). Ctrl+C to stop; prints final summary on exit.
# Single stock real-time (default 10s refresh)
trading-analysis moneyflow --code 002028.SZ --live
# Multiple stocks real-time ranking
trading-analysis moneyflow --code 002028.SZ --code 000859.SZ --code 300618.SZ --live
# Custom refresh interval (30 seconds)
trading-analysis moneyflow --code 002028.SZ --live --interval 30--signal to get alert-on-trigger behavior; see Signal Expressions below.--signal)Live mode supports a minimal expression language for triggering alerts when conditions are met. The expression is evaluated every refresh interval against the running per-stock state.
# Alert when main force is net buying AND price is above MA20
trading-analysis moneyflow --code 002028.SZ --live \
--signal "main_net > 0 and price > ma20"
# Alert on a reversal signal
trading-analysis moneyflow --code 002028.SZ --live \
--signal "main_net > 500000 and ma5 > ma20"
# Multiple stocks — signal is evaluated per code independently
trading-analysis moneyflow --code 002028.SZ --code 000859.SZ --live \
--signal "main_net > 0"Variables (all in yuan unless noted):
| Variable | Meaning |
|---|---|
main_net | Main force net inflow (xlarge + large tiers) |
retail_net | Retail net inflow (medium + small tiers) |
price | Latest tick lastPrice |
ma5 / ma10 / ma20 / ma60 | Simple moving average of that many 1-minute closes |
Operators: >, <, >=, <=, ==, and, or (lowercase only).
Literals: integers and floats; numbers are in yuan (e.g. 500000 = 50 wan).
Semantics:
None (e.g. MA window not yet filled), the signal is not triggered — no false positives during warm-up.ma20 triggers a preload of 20 1-minute klines before the live loop starts.False → True. It re-arms when the expression goes back to False.Output: when triggered, the live display prints a red banner >>> 002028.SZ 信号触发: <expr> <<< and the footer shows "已触发: [codes]". On Ctrl+C exit, a final summary lists which codes ever triggered.
Limitations:
cmp → and → or with left-to-right evaluation.+, -, *, /) inside expressions — compare variables to literal thresholds only.| Parameter | Default | Format |
|---|---|---|
--code | (required, multiple) | XXXXXX.SZ / XXXXXX.SH |
--date | today | YYYYMMDD |
--start | 093000 | HHMMSS |
--end | 150000 | HHMMSS |
--format | table | table / json / csv |
--thresholds | 4,20,100 | comma-separated wan |
--config | from miniqmt-cli client.toml | path |
--live | off | flag |
--interval | 10 | seconds |
002028.SZ 2026-04-16 09:30 ~ 15:00
──────────────────────────────────────────────────
档位 买入(万) 卖出(万) 净流入(万) 方向
超大单 1,230.5 480.2 +750.3 净流入
大单 860.1 920.3 -60.2 净流出
中单 340.7 290.1 +50.6 净流入
小单 180.3 210.8 -30.5 净流出
──────────────────────────────────────────────────
主力合计 +690.1 净流入
散户合计 +20.1 净流入
统计: 快照 4,800 条 | 有效区间 4,799 | 买入 2,103 | 卖出 2,288 | 中性 408Multiple stocks append a ranking:
── 主力净流入排名 ──
#1 002028.SZ +690.1万
#2 300618.SZ +120.3万
#3 000859.SZ -45.2万| Symptom | Cause | Fix |
|---|---|---|
| "cannot reach daemon" | SSH tunnel or daemon down | miniqmt-cli health; restart tunnel/daemon |
| "无数据" | Non-trading hours, invalid code, or no cached data | Check code format, try during market hours |
| All tiers show 0 | No trading activity in the time range | Widen the time range |
| 大单/超大单 always 0 | 3-second avg too small to hit threshold | Lower thresholds: --thresholds 2,10,50 |
| Live mode shows all zeros | Outside trading hours, no new ticks | Run during market hours (09:30-15:00) |
| Live mode not updating | Daemon not returning fresh snapshots | Check miniqmt-cli health; ensure miniQMT client is open |
© oopslink, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/trading-analysis of oopslink/trading-skills.
Open the folder on GitHubat commit 81fc72f
Trading Analysis next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trading Analysis this skilloopslink/trading-skills | 176 | — | ~2k | Automated safety check: Pass | MIT | |
| Tushare Datazillionare/zillionare | 319 | 2 repos | ~2.3k | Automated safety check: Pass | None | |
| Tradingview MCPatilaahmettaner/tradingview-mcp | 5k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Digital Oraclekomako-workshop/digital-oracle | 870 | — | ~5.9k | Automated safety check: Pass | MIT | |
| Fintoolsecond-state/fintool | 316 | 1 repos | ~5.9k | Automated safety check: Pass | None | |
| Polyclawchainstacklabs/polyclaw | 360 | 1 repos | ~2k | Automated safety check: Pass | Apache-2.0 |
zillionare/zillionare
面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。
atilaahmettaner/tradingview-mcp
AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…
komako-workshop/digital-oracle
Answer prediction questions using market trading data, not opinions.
second-state/fintool
Financial trading CLIs — spot and perp trading on Hyperliquid, Binance, Coinbase, OKX.
chainstacklabs/polyclaw
Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.
facioquo/stock-indicators-dotnet
Format and lint Markdown in this repository against GitHub Flavored Markdown and its markdownlint-cli2 configuration — headers, lists, code fences, callouts (VitePress containers on docs-site pages…
oopslink/trading-skills
A skill your agent uses when querying A-share individual stock data including price history, real-time quotes, capital flow, shareholders, block trades, pledges, ETF, or sector health using…
oopslink/trading-skills
Operate miniQMT/xtquant via the miniqmt-cli tool -- market data queries, real-time streaming, account management, order placement with safety guards, daemon health checks, SSH tunnel management, and…
oopslink/trading-skills
A skill your agent uses when performing sector rotation analysis, ranking Shenwan industry sectors by return or momentum, or building a sector strategy screen using tushare-cli.
oopslink/trading-skills
A skill your agent uses when querying concept boards (概念板块), hot concept boards, board capital flow, board constituent stocks, or scanning for volume anomalies across boards using tushare-cli.
oopslink/trading-skills
A skill your agent uses when querying futures contracts, institutional futures holdings, futures intraday bars, NanHua commodity indices, or warehouse receipts using tushare-cli.
oopslink/trading-skills
A skill your agent uses when querying Shenwan industry index (申万) daily data, sector constituents, or global market indices (S&P 500, Nikkei, HSI) using tushare-cli.
Categories
Analyze A-share money flow from tick-level data using the trading-analysis CLI, with both historical and real-time modes. Trading Analysis is an agent skill from oopslink/trading-skills. Analyze A-share money flow from tick-level data using the trading-analysis CLI, with both historical and real-time modes.
Trading Analysis fits situations like: the user mentions money flow; main force inflow/outflow; institutional buying; tick-level analysis.
Run `npx skills add oopslink/trading-skills --skill trading-analysis -a claude-code`. Or copy the skill folder (skills/trading-analysis in oopslink/trading-skills) into .claude/skills/trading-analysis in your project. Claude Code loads it when a task matches its description.
Run `npx skills add oopslink/trading-skills --skill trading-analysis -a codex`. Or copy the skill folder (skills/trading-analysis in oopslink/trading-skills) into .agents/skills/trading-analysis in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oopslink/trading-skills --skill trading-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trading-analysis, .gemini/skills/trading-analysis, .github/skills/trading-analysis and .opencode/skills/trading-analysis in your project.
SKILL.md names no scripts, command-line tools or credentials: Trading Analysis is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trading Analysis is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Trading Analysis: Tushare Data (zillionare/zillionare, 319 stars), Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Digital Oracle (komako-workshop/digital-oracle, 870 stars) and Fintool (second-state/fintool, 316 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
oopslink (a GitHub user) maintains it in oopslink/trading-skills, which has 176 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on May 24, 2026.
Source: oopslink/trading-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.