{
  "schemaVersion": "1.0",
  "item": {
    "slug": "tushare-base",
    "name": "tushare-base",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/WdBlink/tushare-base",
    "canonicalUrl": "https://clawhub.ai/WdBlink/tushare-base",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/tushare-base",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tushare-base",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "references/stock_api.md",
      "references/futures_api.md",
      "scripts/market.py",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/tushare-base"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/tushare-base",
    "agentPageUrl": "https://openagent3.xyz/skills/tushare-base/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tushare-base/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tushare-base/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Tushare 金融数据接口",
        "body": "获取中国 A 股市场和期货市场的实时及历史数据。"
      },
      {
        "title": "1. 注册 Tushare 账号",
        "body": "访问 https://tushare.pro/register 注册账号并获取 API Token。"
      },
      {
        "title": "2. 配置 Token",
        "body": "# 添加到 ~/.zshrc\nexport TUSHARE_TOKEN=\"your-api-token-here\"\n\n然后执行：\n\nsource ~/.zshrc"
      },
      {
        "title": "3. 安装依赖",
        "body": "pip3 install tushare pandas --user"
      },
      {
        "title": "获取股票列表",
        "body": "python3 scripts/market.py stock_basic"
      },
      {
        "title": "获取日线行情",
        "body": "python3 scripts/market.py daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131"
      },
      {
        "title": "获取实时行情",
        "body": "python3 scripts/market.py realtime 000001"
      },
      {
        "title": "股票基础信息",
        "body": "python3 scripts/market.py stock_basic\npython3 scripts/market.py stock_basic --exchange SSE  # 仅上交所\npython3 scripts/market.py stock_basic --exchange SZSE  # 仅深交所"
      },
      {
        "title": "日线行情",
        "body": "# 获取单只股票近期数据\npython3 scripts/market.py daily --ts_code 000001.SZ\n\n# 指定日期范围\npython3 scripts/market.py daily --ts_code 600519.SH --start_date 20240101 --end_date 20240131\n\n# 获取指定交易日全市场数据\npython3 scripts/market.py daily --trade_date 20240115"
      },
      {
        "title": "周线行情",
        "body": "# 获取周线数据\npython3 scripts/market.py weekly --ts_code 000001.SZ\n\n# 指定日期范围\npython3 scripts/market.py weekly --ts_code 600519.SH --start_date 20230101 --end_date 20240131"
      },
      {
        "title": "月线行情",
        "body": "# 获取月线数据\npython3 scripts/market.py monthly --ts_code 000001.SZ\n\n# 指定日期范围\npython3 scripts/market.py monthly --ts_code 600519.SH --start_date 20200101 --end_date 20240131\n\n股票代码格式：\n\n深交所：000001.SZ, 000002.SZ, 300001.SZ (创业板)\n上交所：600000.SH, 600519.SH, 688001.SH (科创板)"
      },
      {
        "title": "实时行情",
        "body": "python3 scripts/market.py realtime 000001\npython3 scripts/market.py realtime 600519"
      },
      {
        "title": "资金流向",
        "body": "# 获取指定股票资金流向\npython3 scripts/market.py moneyflow --ts_code 000001.SZ\n\n# 获取指定日期全市场资金流向\npython3 scripts/market.py moneyflow --trade_date 20240115"
      },
      {
        "title": "公司信息",
        "body": "python3 scripts/market.py company"
      },
      {
        "title": "期货合约基础信息",
        "body": "python3 scripts/market.py fut_basic\n\n# 指定交易所\npython3 scripts/market.py fut_basic --exchange CFFEX  # 中金所\npython3 scripts/market.py fut_basic --exchange SHFE   # 上期所\npython3 scripts/market.py fut_basic --exchange DCE    # 大商所\npython3 scripts/market.py fut_basic --exchange CZCE   # 郑商所\n\n交易所代码：\n\nCFFEX - 中国金融期货交易所\nSHFE - 上海期货交易所\nDCE - 大连商品交易所\nCZCE - 郑州商品交易所\nINE - 上海国际能源交易中心"
      },
      {
        "title": "期货日线行情",
        "body": "# 获取铜期货数据\npython3 scripts/market.py fut_daily --ts_code CU.SHF\n\n# 获取沪深300股指期货\npython3 scripts/market.py fut_daily --ts_code IF.CFX\n\n# 指定日期范围\npython3 scripts/market.py fut_daily --ts_code RB.SHF --start_date 20240101 --end_date 20240131\n\n期货代码格式：\n\n上期所：CU.SHF (铜), RB.SHF (螺纹钢), AU.SHF (黄金)\n大商所：M.DCE (豆粕), I.DCE (铁矿石)\n郑商所：SR.CZC (白糖), CF.CZC (棉花)\n中金所：IF.CFX (沪深300), IC.CFX (中证500)"
      },
      {
        "title": "期货持仓排名",
        "body": "python3 scripts/market.py fut_holding --trade_date 20240115 --symbol CU"
      },
      {
        "title": "GDP 数据",
        "body": "python3 scripts/market.py gdp\n\n输出示例：\n\n📈 GDP数据 (88 条):\n\n2023年4季度: GDP 347909亿元, 增速 5.2%\n2023年3季度: GDP 319992亿元, 增速 4.9%\n..."
      },
      {
        "title": "CPI 数据",
        "body": "python3 scripts/market.py cpi"
      },
      {
        "title": "PPI 数据",
        "body": "python3 scripts/market.py ppi"
      },
      {
        "title": "命令速查表",
        "body": "命令功能示例stock_basic股票基础信息--exchange SSEdaily日线行情--ts_code 000001.SZ --start_date 20240101weekly周线行情--ts_code 000001.SZ --start_date 20230101monthly月线行情--ts_code 000001.SZ --start_date 20200101realtime实时行情000001moneyflow资金流向--ts_code 000001.SZcompany公司信息-fut_basic期货基础信息--exchange SHFEfut_daily期货日线--ts_code CU.SHFfut_holding持仓排名--symbol CUgdpGDP数据-cpiCPI数据-ppiPPI数据-"
      },
      {
        "title": "常见问题",
        "body": "错误：请设置 TUSHARE_TOKEN 环境变量\n→ 在 ~/.zshrc 中添加 export TUSHARE_TOKEN=\"your-token\" 并执行 source ~/.zshrc\n\n错误：没有数据返回\n→ 检查股票/期货代码格式是否正确（如：000001.SZ, CU.SHF）\n\n错误：权限不足\n→ Tushare 部分接口需要积分或付费权限，请在官网查看接口权限要求\n\n如何获取股票代码？\n\npython3 scripts/market.py stock_basic | grep \"平安\""
      },
      {
        "title": "参考文档",
        "body": "股票接口文档: references/stock_api.md\n期货接口文档: references/futures_api.md\nTushare 官网: https://tushare.pro"
      }
    ],
    "body": "Tushare 金融数据接口\n\n获取中国 A 股市场和期货市场的实时及历史数据。\n\n前提条件\n1. 注册 Tushare 账号\n\n访问 https://tushare.pro/register 注册账号并获取 API Token。\n\n2. 配置 Token\n# 添加到 ~/.zshrc\nexport TUSHARE_TOKEN=\"your-api-token-here\"\n\n\n然后执行：\n\nsource ~/.zshrc\n\n3. 安装依赖\npip3 install tushare pandas --user\n\n快速开始\n获取股票列表\npython3 scripts/market.py stock_basic\n\n获取日线行情\npython3 scripts/market.py daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131\n\n获取实时行情\npython3 scripts/market.py realtime 000001\n\n股票数据\n股票基础信息\npython3 scripts/market.py stock_basic\npython3 scripts/market.py stock_basic --exchange SSE  # 仅上交所\npython3 scripts/market.py stock_basic --exchange SZSE  # 仅深交所\n\n日线行情\n# 获取单只股票近期数据\npython3 scripts/market.py daily --ts_code 000001.SZ\n\n# 指定日期范围\npython3 scripts/market.py daily --ts_code 600519.SH --start_date 20240101 --end_date 20240131\n\n# 获取指定交易日全市场数据\npython3 scripts/market.py daily --trade_date 20240115\n\n周线行情\n# 获取周线数据\npython3 scripts/market.py weekly --ts_code 000001.SZ\n\n# 指定日期范围\npython3 scripts/market.py weekly --ts_code 600519.SH --start_date 20230101 --end_date 20240131\n\n月线行情\n# 获取月线数据\npython3 scripts/market.py monthly --ts_code 000001.SZ\n\n# 指定日期范围\npython3 scripts/market.py monthly --ts_code 600519.SH --start_date 20200101 --end_date 20240131\n\n\n股票代码格式：\n\n深交所：000001.SZ, 000002.SZ, 300001.SZ (创业板)\n上交所：600000.SH, 600519.SH, 688001.SH (科创板)\n实时行情\npython3 scripts/market.py realtime 000001\npython3 scripts/market.py realtime 600519\n\n资金流向\n# 获取指定股票资金流向\npython3 scripts/market.py moneyflow --ts_code 000001.SZ\n\n# 获取指定日期全市场资金流向\npython3 scripts/market.py moneyflow --trade_date 20240115\n\n公司信息\npython3 scripts/market.py company\n\n期货数据\n期货合约基础信息\npython3 scripts/market.py fut_basic\n\n# 指定交易所\npython3 scripts/market.py fut_basic --exchange CFFEX  # 中金所\npython3 scripts/market.py fut_basic --exchange SHFE   # 上期所\npython3 scripts/market.py fut_basic --exchange DCE    # 大商所\npython3 scripts/market.py fut_basic --exchange CZCE   # 郑商所\n\n\n交易所代码：\n\nCFFEX - 中国金融期货交易所\nSHFE - 上海期货交易所\nDCE - 大连商品交易所\nCZCE - 郑州商品交易所\nINE - 上海国际能源交易中心\n期货日线行情\n# 获取铜期货数据\npython3 scripts/market.py fut_daily --ts_code CU.SHF\n\n# 获取沪深300股指期货\npython3 scripts/market.py fut_daily --ts_code IF.CFX\n\n# 指定日期范围\npython3 scripts/market.py fut_daily --ts_code RB.SHF --start_date 20240101 --end_date 20240131\n\n\n期货代码格式：\n\n上期所：CU.SHF (铜), RB.SHF (螺纹钢), AU.SHF (黄金)\n大商所：M.DCE (豆粕), I.DCE (铁矿石)\n郑商所：SR.CZC (白糖), CF.CZC (棉花)\n中金所：IF.CFX (沪深300), IC.CFX (中证500)\n期货持仓排名\npython3 scripts/market.py fut_holding --trade_date 20240115 --symbol CU\n\n宏观经济\nGDP 数据\npython3 scripts/market.py gdp\n\n\n输出示例：\n\n📈 GDP数据 (88 条):\n\n2023年4季度: GDP 347909亿元, 增速 5.2%\n2023年3季度: GDP 319992亿元, 增速 4.9%\n...\n\nCPI 数据\npython3 scripts/market.py cpi\n\nPPI 数据\npython3 scripts/market.py ppi\n\n命令速查表\n命令\t功能\t示例\nstock_basic\t股票基础信息\t--exchange SSE\ndaily\t日线行情\t--ts_code 000001.SZ --start_date 20240101\nweekly\t周线行情\t--ts_code 000001.SZ --start_date 20230101\nmonthly\t月线行情\t--ts_code 000001.SZ --start_date 20200101\nrealtime\t实时行情\t000001\nmoneyflow\t资金流向\t--ts_code 000001.SZ\ncompany\t公司信息\t-\nfut_basic\t期货基础信息\t--exchange SHFE\nfut_daily\t期货日线\t--ts_code CU.SHF\nfut_holding\t持仓排名\t--symbol CU\ngdp\tGDP数据\t-\ncpi\tCPI数据\t-\nppi\tPPI数据\t-\n常见问题\n\n错误：请设置 TUSHARE_TOKEN 环境变量 → 在 ~/.zshrc 中添加 export TUSHARE_TOKEN=\"your-token\" 并执行 source ~/.zshrc\n\n错误：没有数据返回 → 检查股票/期货代码格式是否正确（如：000001.SZ, CU.SHF）\n\n错误：权限不足 → Tushare 部分接口需要积分或付费权限，请在官网查看接口权限要求\n\n如何获取股票代码？\n\npython3 scripts/market.py stock_basic | grep \"平安\"\n\n参考文档\n股票接口文档: references/stock_api.md\n期货接口文档: references/futures_api.md\nTushare 官网: https://tushare.pro"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/WdBlink/tushare-base",
    "publisherUrl": "https://clawhub.ai/WdBlink/tushare-base",
    "owner": "WdBlink",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/tushare-base",
    "downloadUrl": "https://openagent3.xyz/downloads/tushare-base",
    "agentUrl": "https://openagent3.xyz/skills/tushare-base/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tushare-base/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tushare-base/agent.md"
  }
}