← 返回
数据分析 Key 中文

Quant-Expert

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...
用于中国A股市场的量化分析技能,基于Tushare Pro数据和节假日助手,适用于用户请求股票筛选、股票诊断等场景。
noah-wu66
数据分析 clawhub v1.0.0 1 版本 99852.1 Key: 需要
★ 0
Stars
📥 1,350
下载
💾 210
安装
1
版本
#latest

概述

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:

  • tushare
  • pandas
  • requests

Note:

  • holiday_helper.py does not need TUSHARE_TOKEN.
  • All other bundled scripts need TUSHARE_TOKEN.

Hard Rules

  1. If dependencies or TUSHARE_TOKEN are missing, stop and report the blocker clearly.
  2. Do not install packages unless the user explicitly asks.
  3. Use Tushare as the primary numeric data source.
  4. Only add web research when the user wants interpretation, diagnosis, ranking, or recommendation.
  5. 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: low PE_TTM, low PB, minimum market cap, minimum ROE, exclude ST
  • dividend: minimum dv_ttm, then verify consecutive dividend years
  • growth: revenue YoY, profit YoY, and ROE
  • momentum: 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

  1. Pull numeric evidence with Tushare first.
  2. Add event evidence from credible web sources.
  3. Keep the final answer in this order:
  4. one-line conclusion
  5. key quantitative findings
  6. key event findings with source and URL
  7. resonance or divergence
  8. main risks
  9. 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 23:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,509
productivity

Office-Editor

noah-wu66
创建或修改Word文档(.docx)、Excel表格(.xlsx)和PowerPoint演示文稿(.pptx)。当用户提及Office、Word、Excel、PowerPoint、docx、xlsx、pptx等相关内容时使用。
★ 2 📥 2,389
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,042