OpenParable
Skip to content
← Back to skills

tushare-query

Apps & Automation

Use when setting up tushare-cli token, choosing output formats, or getting an overview of available A-share market data query skills

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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

FlagEffect
--format jsonJSON output (pipe to jq)
--format csvCSV output (redirect to file)
--cacheCache result within session

Format Tips

  • Date: always YYYYMMDD (e.g., 20240201)
  • ts_code: XXXXXX.SZ Shenzhen · XXXXXX.SH Shanghai · XXXXXX.SI Shenwan index
  • Best combo: --format json | jq 'sort_by(-.pct_chg) | .[:10]'

Skills by Domain

DomainSkill
Individual stocks, ETF, capital flowtushare-stock
Shenwan index, sector constituentstushare-index
Concept boards, volume anomalytushare-concepts
Sector rotation & rankingtushare-alpha
Financial statementstushare-financial
Futures contracts & holdingstushare-futures
Forex ratestushare-forex