About tushare-query
tushare-query is a command-line skill for financial data work, outlining Tushare setup, output formats, and domain-specific skills. It organizes entry points for stock, index, financial-statement, futures, and forex queries.
Key features
- 01Tushare token setup guidance
- 02JSON and CSV output tips
- 03Session result caching
- 04Skills organized by finance domain
Use cases
- 01Query stocks, ETFs, and capital flows
- 02Explore indices and sector constituents
- 03Find statements, futures, or forex data
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ oopslink/ trading-skills --skill tushare-queryAfter installing, type/tushare-queryin Claude Code to confirm it loaded.
Details
From the project READMEtushare-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 |
Comments
Markdown supported