# Send tushare-base to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/tushare-base",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tushare-base",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "references/stock_api.md",
      "references/futures_api.md",
      "scripts/market.py",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "tushare-base",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T20:29:51.747Z",
      "expiresAt": "2026-05-19T20:29:51.747Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tushare-base",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tushare-base",
        "contentDisposition": "attachment; filename=\"tushare-base-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "tushare-base"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Tushare 金融数据接口

获取中国 A 股市场和期货市场的实时及历史数据。

### 1. 注册 Tushare 账号

访问 https://tushare.pro/register 注册账号并获取 API Token。

### 2. 配置 Token

# 添加到 ~/.zshrc
export TUSHARE_TOKEN="your-api-token-here"

然后执行：

source ~/.zshrc

### 3. 安装依赖

pip3 install tushare pandas --user

### 获取股票列表

python3 scripts/market.py stock_basic

### 获取日线行情

python3 scripts/market.py daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131

### 获取实时行情

python3 scripts/market.py realtime 000001

### 股票基础信息

python3 scripts/market.py stock_basic
python3 scripts/market.py stock_basic --exchange SSE  # 仅上交所
python3 scripts/market.py stock_basic --exchange SZSE  # 仅深交所

### 日线行情

# 获取单只股票近期数据
python3 scripts/market.py daily --ts_code 000001.SZ

# 指定日期范围
python3 scripts/market.py daily --ts_code 600519.SH --start_date 20240101 --end_date 20240131

# 获取指定交易日全市场数据
python3 scripts/market.py daily --trade_date 20240115

### 周线行情

# 获取周线数据
python3 scripts/market.py weekly --ts_code 000001.SZ

# 指定日期范围
python3 scripts/market.py weekly --ts_code 600519.SH --start_date 20230101 --end_date 20240131

### 月线行情

# 获取月线数据
python3 scripts/market.py monthly --ts_code 000001.SZ

# 指定日期范围
python3 scripts/market.py monthly --ts_code 600519.SH --start_date 20200101 --end_date 20240131

股票代码格式：

深交所：000001.SZ, 000002.SZ, 300001.SZ (创业板)
上交所：600000.SH, 600519.SH, 688001.SH (科创板)

### 实时行情

python3 scripts/market.py realtime 000001
python3 scripts/market.py realtime 600519

### 资金流向

# 获取指定股票资金流向
python3 scripts/market.py moneyflow --ts_code 000001.SZ

# 获取指定日期全市场资金流向
python3 scripts/market.py moneyflow --trade_date 20240115

### 公司信息

python3 scripts/market.py company

### 期货合约基础信息

python3 scripts/market.py fut_basic

# 指定交易所
python3 scripts/market.py fut_basic --exchange CFFEX  # 中金所
python3 scripts/market.py fut_basic --exchange SHFE   # 上期所
python3 scripts/market.py fut_basic --exchange DCE    # 大商所
python3 scripts/market.py fut_basic --exchange CZCE   # 郑商所

交易所代码：

CFFEX - 中国金融期货交易所
SHFE - 上海期货交易所
DCE - 大连商品交易所
CZCE - 郑州商品交易所
INE - 上海国际能源交易中心

### 期货日线行情

# 获取铜期货数据
python3 scripts/market.py fut_daily --ts_code CU.SHF

# 获取沪深300股指期货
python3 scripts/market.py fut_daily --ts_code IF.CFX

# 指定日期范围
python3 scripts/market.py fut_daily --ts_code RB.SHF --start_date 20240101 --end_date 20240131

期货代码格式：

上期所：CU.SHF (铜), RB.SHF (螺纹钢), AU.SHF (黄金)
大商所：M.DCE (豆粕), I.DCE (铁矿石)
郑商所：SR.CZC (白糖), CF.CZC (棉花)
中金所：IF.CFX (沪深300), IC.CFX (中证500)

### 期货持仓排名

python3 scripts/market.py fut_holding --trade_date 20240115 --symbol CU

### GDP 数据

python3 scripts/market.py gdp

输出示例：

📈 GDP数据 (88 条):

2023年4季度: GDP 347909亿元, 增速 5.2%
2023年3季度: GDP 319992亿元, 增速 4.9%
...

### CPI 数据

python3 scripts/market.py cpi

### PPI 数据

python3 scripts/market.py ppi

### 命令速查表

命令功能示例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数据-

### 常见问题

错误：请设置 TUSHARE_TOKEN 环境变量
→ 在 ~/.zshrc 中添加 export TUSHARE_TOKEN="your-token" 并执行 source ~/.zshrc

错误：没有数据返回
→ 检查股票/期货代码格式是否正确（如：000001.SZ, CU.SHF）

错误：权限不足
→ Tushare 部分接口需要积分或付费权限，请在官网查看接口权限要求

如何获取股票代码？

python3 scripts/market.py stock_basic | grep "平安"

### 参考文档

股票接口文档: references/stock_api.md
期货接口文档: references/futures_api.md
Tushare 官网: https://tushare.pro
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: WdBlink
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T20:29:51.747Z
- Expires at: 2026-05-19T20:29:51.747Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/tushare-base)
- [Send to Agent page](https://openagent3.xyz/skills/tushare-base/agent)
- [JSON manifest](https://openagent3.xyz/skills/tushare-base/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/tushare-base/agent.md)
- [Download page](https://openagent3.xyz/downloads/tushare-base)