tushare-query
Apps & AutomationUse when setting up tushare-cli token, choosing output formats, or getting an overview of available A-share market data query skills
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/oopslink/trading-skills/blob/HEAD/skills/tushare-query/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/tushare-query, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
tushare-query: Setup & Overview
Token Setup
tushare-cli config set-token <YOUR_TOKEN>
# or: export TUSHARE_TOKEN=<token>
Common Flags
| Flag | Effect |
|---|---|
--format json | JSON output (pipe to jq) |
--format csv | CSV output (redirect to file) |
--cache | Cache result within session |
Format Tips
- Date: always
YYYYMMDD(e.g.,20240201) - ts_code:
XXXXXX.SZShenzhen ·XXXXXX.SHShanghai ·XXXXXX.SIShenwan index - Best combo:
--format json | jq 'sort_by(-.pct_chg) | .[:10]'
Skills by Domain
| Domain | Skill |
|---|---|
| Individual stocks, ETF, capital flow | tushare-stock |
| Shenwan index, sector constituents | tushare-index |
| Concept boards, volume anomaly | tushare-concepts |
| Sector rotation & ranking | tushare-alpha |
| Financial statements | tushare-financial |
| Futures contracts & holdings | tushare-futures |
| Forex rates | tushare-forex |