# Send etf-finance 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "etf-finance",
    "name": "etf-finance",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/popwho/etf-finance",
    "canonicalUrl": "https://clawhub.ai/popwho/etf-finance",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/etf-finance",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=etf-finance",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "_meta.json",
      "scripts/add_alert.py",
      "scripts/add_position.py",
      "scripts/check_alerts.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/etf-finance"
    },
    "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/etf-finance",
    "downloadUrl": "https://openagent3.xyz/downloads/etf-finance",
    "agentUrl": "https://openagent3.xyz/skills/etf-finance/agent",
    "manifestUrl": "https://openagent3.xyz/skills/etf-finance/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/etf-finance/agent.md"
  }
}
```
## Documentation

### ETF Finance Skill

A comprehensive ETF and fund portfolio management tool with real-time price tracking, profit/loss calculations, and price alert functionality.

### 功能概述

持仓管理：添加、删除、查看 ETF/基金持仓
盈亏计算：实时计算持仓盈亏和收益率
价格提醒：设置目标价格，达到时自动提醒
行情监控：实时获取 ETF/基金价格数据

### 持仓管理

添加持仓

cd ~/.openclaw/workspace/skills/etf-investor
python3 scripts/add_position.py SPY 150.50 100 "S&P 500 ETF"

参数：代码 | 买入价 | 数量 | 名称

删除持仓

python3 scripts/remove_position.py SPY

查看持仓列表

python3 scripts/list_positions.py

查看持仓详情（含盈亏）

python3 scripts/portfolio_summary.py

### 价格提醒

设置价格提醒

python3 scripts/add_alert.py SPY 160.00 "price_up"
# 或
python3 scripts/add_alert.py SPY 140.00 "price_down"

查看所有提醒

python3 scripts/list_alerts.py

删除提醒

python3 scripts/remove_alert.py SPY

检查提醒状态

python3 scripts/check_alerts.py

### 行情查询

查询单个 ETF/基金价格

python3 scripts/get_price.py SPY

批量查询持仓价格

python3 scripts/update_prices.py

### 持仓数据格式

持仓存储在 ~/.clawdbot/etf_investor/positions.json:

[
  {
    "symbol": "SPY",
    "name": "S&P 500 ETF",
    "buy_price": 150.50,
    "quantity": 100,
    "buy_date": "2026-02-23",
    "current_price": 155.20,
    "last_updated": "2026-02-23T10:30:00Z"
  }
]

### 价格提醒数据格式

提醒存储在 ~/.clawdbot/etf_investor/alerts.json:

[
  {
    "symbol": "SPY",
    "target_price": 160.00,
    "condition": "price_up",
    "created_at": "2026-02-23T10:00:00Z",
    "triggered": false
  }
]

### 盈亏计算公式

持仓市值: 当前价 × 数量
成本: 买入价 × 数量
盈亏金额: (当前价 - 买入价) × 数量
盈亏比例: (当前价 - 买入价) / 买入价 × 100%

### 支持的代码格式

美股 ETF: SPY, QQQ, VOO, VTI, IVV, IWM
国际 ETF: EFA, VEA, VWO, VXUS
行业 ETF: XLF, XLK, XLV, XLE, XLB
基金: 使用 Yahoo Finance 支持的任何基金代码

### 安装

cd ~/.openclaw/workspace/skills/etf-investor
bash scripts/install.sh

### 卸载

bash scripts/uninstall.sh

### 自动提醒

可以将 check_alerts.py 加入系统定时任务（如 cron）实现自动提醒：

# 每小时检查一次提醒
0 * * * * cd ~/.openclaw/workspace/skills/etf-investor && python3 scripts/check_alerts.py

### 注意事项

数据来源：Yahoo Finance (免费，无 API Key)
价格可能有 15 分钟延迟（美股）
建议定期备份数据文件
价格提醒仅在本地检查，不会推送通知

### 脚本说明

add_position.py - 添加持仓
remove_position.py - 删除持仓
list_positions.py - 列出所有持仓
portfolio_summary.py - 持仓摘要（含盈亏）
add_alert.py - 添加价格提醒
remove_alert.py - 删除价格提醒
list_alerts.py - 列出所有提醒
check_alerts.py - 检查提醒状态
get_price.py - 获取单个价格
update_prices.py - 批量更新价格
install.sh - 安装脚本
uninstall.sh - 卸载脚本
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: popwho
- Version: 1.1.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/etf-finance)
- [Send to Agent page](https://openagent3.xyz/skills/etf-finance/agent)
- [JSON manifest](https://openagent3.xyz/skills/etf-finance/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/etf-finance/agent.md)
- [Download page](https://openagent3.xyz/downloads/etf-finance)