Query real-time stock prices, basic quote fields, and manage a Markdown watchlist for A-share, Hong Kong, and US stocks. Use when users ask in Chinese or by...
Data & analysis
Quant-Expert
Try itQuantitative analysis skill for the Chinese A-share market using Tushare Pro data and a holiday helper. Use when the user asks for stock screening, stock dia...
What it does
Quantitative analysis skill for the Chinese A-share market using Tushare Pro data and a holiday helper. Use when the user asks for stock screening, stock dia...
The skill document
Quant Expert
Use this skill for Chinese A-share quantitative work in OpenClaw.
OpenClaw Setup
OpenClaw-friendly rule:
- Keep the Tushare token outside the repository.
- Prefer OpenClaw config injection over manual shell export.
- Do not auto-install Python packages.
Recommended OpenClaw config:
{
"skills": {
"entries": {
"quant-expert": {
"apiKey": "your-tushare-token"
}
}
}
}
Because primaryEnv is set to TUSHARE_TOKEN, OpenClaw can inject the token for this skill automatically.
Required Python packages for Tushare features:
tusharepandasrequests
Note:
holiday_helper.pydoes not needTUSHARE_TOKEN.- All other bundled scripts need
TUSHARE_TOKEN.
Hard Rules
- If dependencies or
TUSHARE_TOKENare missing, stop and report the blocker clearly. - Do not install packages unless the user explicitly asks.
- Use Tushare as the primary numeric data source.
- Only add web research when the user wants interpretation, diagnosis, ranking, or recommendation.
- If Tushare is blocked, report the blocker instead of silently replacing numeric facts with web data.
Path Rule
When referencing bundled files in OpenClaw, use {baseDir}:
{baseDir}/scripts/tushare_helper.py{baseDir}/scripts/stock_screener.py{baseDir}/scripts/stock_diagnosis.py{baseDir}/scripts/holiday_helper.py{baseDir}/references/api_quick_reference.md{baseDir}/references/analysis_strategies.md
What To Use
Raw Tushare query
Use {baseDir}/scripts/tushare_helper.py.
Example:
python {baseDir}/scripts/tushare_helper.py stock_basic '{"list_status":"L"}' -n 20
python {baseDir}/scripts/tushare_helper.py daily_basic '{"trade_date":"20260302"}' -f ts_code,pe_ttm,pb,total_mv
Stock screening
Use {baseDir}/scripts/stock_screener.py.
value: lowPE_TTM, lowPB, minimum market cap, minimumROE, exclude STdividend: minimumdv_ttm, then verify consecutive dividend yearsgrowth: revenue YoY, profit YoY, andROEmomentum: daily gain, volume ratio, turnover rate
Example:
python {baseDir}/scripts/stock_screener.py -s value --pe-max 20 --roe-min 15 --mv-min 100
python {baseDir}/scripts/stock_screener.py -s growth --rev-growth-min 20 --profit-growth-min 25
Stock diagnosis
Use {baseDir}/scripts/stock_diagnosis.py.
Current built-in diagnosis is a structured snapshot, not an automatic rating model.
It covers:
- company basics
- price performance
- valuation snapshot
- income and financial-indicator trends
- top shareholders and holder-count trend
- recent money flow
- ST, pledge, and restricted-share checks
Example:
python {baseDir}/scripts/stock_diagnosis.py 600519.SH
Trading day and holiday
Use {baseDir}/scripts/holiday_helper.py.
Example:
python {baseDir}/scripts/holiday_helper.py check
python {baseDir}/scripts/holiday_helper.py next 2026-09-30
Beijing Time Rule
Always reason in Beijing time.
- Before 15:30 Beijing time, daily market data usually means the previous trading day.
- After 15:30 Beijing time, same-day daily data may be available.
- Do not hardcode dates when the helper utilities can derive them.
OpenClaw Execution Pattern
If the user wants raw data
- Stay on the Tushare data layer.
- Use one bundled script first.
- Return concise results without forcing event research.
If the user wants judgment or interpretation
- Pull numeric evidence with Tushare first.
- Add event evidence from credible web sources.
- Keep the final answer in this order:
- one-line conclusion
- key quantitative findings
- key event findings with source and URL
- resonance or divergence
- main risks
- investment disclaimer
Minimum event evidence target:
- 2 stock-level events
- 2 industry-level events
- 2 macro/global events
References
{baseDir}/references/api_quick_reference.md{baseDir}/references/analysis_strategies.md
Related skills
Use when the user needs Tonghuashun iFinD market, report, factor, screening, calendar, or other financial data, and all data must come from iFinD after succe...
Produce scheduled A-share and fund intelligence reports with bullish and bearish signals, source-backed analysis, and position-adjustment suggestions. Use wh...
这是 StockEarningCN 的 技能(Skill)。安装本技能,你将获得将自己的持仓通过习惯的AI助手进行更新和统计的能力。目前支持A股、B股、港股和美股。如果要获得API Key,请访问https://www.mystockearning.cn。
基于 Tushare Pro A 股日线与 Baostock 风格指数生成盘后市场研报。当用户要求分析每日或历史盘面、指数与市场风格、情绪和成交额集中度、赚钱效应与上涨主线、即时及短中期催化、主线细分线路、爆量下跌,或容量上涨、全市场月线平台突破、10:30 前涨停、折扣启动等特征分组时使用;也用于特征分组量化回...
Mainland China A-share stock and sector analysis tool (中国A股个股与板块分析). Current repo build focuses on stable deterministic products for stock snapshots, basic f...