openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > finance

Track stocks, ETFs, indices, crypto (where available), and FX pairs with caching + provider fallbacks.

金融与交易

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.1.2

统计:⭐ 14 · 8.4k · 59 current installs · 63 all-time installs

14

安装量(当前) 63

🛡 VirusTotal :良性 · OpenClaw :可疑

Package:anton-roos/finance

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :可疑

OpenClaw 评估

The skill is broadly consistent with its stated purpose (price lookups, series, watchlist) and contains no obvious exfiltration, but there are packaging/instruction inconsistencies (unused env vars advertised, mismatched cache paths) that warrant caution before installing or providing secrets.

目的

Code implements price lookups (yfinance for stocks, open.er-api.com for FX), historical series, and a local watchlist — this matches the skill description. However the SKILL.md metadata advertises requiredEnv entries (TWELVEDATA_API_KEY, ALPHAVANTAGE_API_KEY) and a stateDirs path ('.cache/finance') that do not appear in the registry metadata and do not match the code (which uses '.cache/market-tracker'). That mismatch is inconsistent but not n…

说明范围

Runtime instructions are narrow and explicit: create a virtualenv, pip install requirements, run the provided scripts. The scripts read/write a local cache and watchlist and call the expected external providers (Yahoo via yfinance and open.er-api.com). The instructions do not ask the agent to read unrelated system files or exfiltrate data to unexpected endpoints.

安装机制

There is no remote install script or arbitrary-download step. The SKILL.md tells the user to create a venv and pip install from requirements.txt (yfinance, pandas, requests) — standard for a Python script bundle. No suspicious third-party URLs or archive extraction steps are present.

证书

Registry metadata reports no required env vars, but SKILL.md's embedded metadata lists TWELVEDATA_API_KEY and ALPHAVANTAGE_API_KEY as requiredEnv (and providers.md mentions optional paid providers). The code does not read those env vars. Asking for API keys in documentation without implementing their use is a risky mismatch: users might export sensitive keys unnecessarily. Also the SKILL.md stateDirs ('.cache/finance') differs from the actual …

持久

The skill writes cache files and a watchlist under a local .cache directory ('.cache/market-tracker'). This is expected for a market-tracking tool. 'always' is false and the skill does not request system-wide privileges. The metadata/stateDirs mismatch is worth noting so users know where files will actually be stored.

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「finance」。简介:Track stocks, ETFs, indices, crypto (where available), and FX pairs with cachin…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/anton-roos/finance/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: finance
description: Track stocks, ETFs, indices, crypto (where available), and FX pairs with caching + provider fallbacks.
metadata: {"clawdbot":{"config":{"requiredEnv":["TWELVEDATA_API_KEY","ALPHAVANTAGE_API_KEY"],"stateDirs":[".cache/finance"],"example":"# Optional (only if you add a paid provider later)n# export TWELVEDATA_API_KEY="..."n# export ALPHAVANTAGE_API_KEY="..."n"}}}
---

# Market Tracker Skill

This skill helps you fetch **latest quotes** and **historical series** for:
- Stocks / ETFs / Indices (e.g., AAPL, MSFT, ^GSPC, VOO)
- FX pairs (e.g., USD/ZAR, EURUSD, GBP-JPY)
- Crypto tickers supported by the chosen provider (best-effort)

It is optimized for:
- fast “what’s the price now?” queries
- lightweight tracking with a local watchlist
- caching to avoid rate-limits

## When to use
Use this skill when the user asks:
- “What’s the latest price of ___?”
- “Track ___ and ___ and show me daily changes.”
- “Give me a 30-day series for ___.”
- “Convert USD to ZAR (or track USD/ZAR).”
- “Maintain a watchlist and summarize performance.”

## Provider strategy (important)
- **Stocks/ETFs/indices** default: Yahoo Finance via `yfinance` (no key, broad coverage), but it is unofficial and can rate-limit.
- **FX** default: ExchangeRate-API Open Access endpoint (no key, daily update).
- If the user needs high-frequency or many symbols, recommend adding a paid provider later.

See `providers.md` for details and symbol formats.

---

# Quick start (how you run it)
These scripts are intended to be run from a terminal. The agent should:
1) ensure dependencies installed
2) run the scripts
3) summarize results cleanly

Install:
- `python -m venv .venv && source .venv/bin/activate` (or Windows equivalent)
- `pip install -r requirements.txt`

## Commands

### 1) Latest quote (stock/ETF/index)
Examples:
- `python scripts/market_quote.py AAPL`
- `python scripts/market_quote.py ^GSPC`
- `python scripts/market_quote.py VOO`

### 2) Latest FX rate
Examples:
- `python scripts/market_quote.py USD/ZAR`
- `python scripts/market_quote.py EURUSD`
- `python scripts/market_quote.py GBP-JPY`

### 3) Historical series (CSV to stdout)
Examples:
- `python scripts/market_series.py AAPL --days 30`
- `python scripts/market_series.py USD/ZAR --days 30`

### 4) Watchlist summary (local file)
- Add tickers: `python scripts/market_watchlist.py add AAPL MSFT USD/ZAR`
- Remove: `python scripts/market_watchlist.py remove MSFT`
- Show summary: `python scripts/market_watchlist.py summary`

---

# Output expectations (what you should return to the user)
- For quotes: price, change %, timestamp/source, and any caveats (like “FX updates daily”).
- For series: confirm date range, number of points, and show a small preview (first/last few rows).
- If rate-limited: explain what happened and retry with backoff OR advise to reduce frequency.

---

# Safety / correctness
- Never claim “real-time” unless the provider is truly real-time. FX open access updates daily.
- Always cache responses and throttle repeated calls.
- If Yahoo blocks requests, propose a paid provider or increase cache TTL.