finance

👤 anton-roos 📦 v1.1.2 ⭐ 4.2 ⬇️ 19.9K 下载
💼 行业专业 免费 🔑 需 API Key

📖 技能介绍


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

这个技能的最新版本可以在7w4.net小葱技能站找到。

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.

🤖 AI 评测

这个 Skill 质量较好,能满足股票、ETF、外汇和加密货币的实时报价查询需求。文档清晰明了,使用门槛低,支持本地 watchlist 追踪很实用。主要缺点是股票数据来源不够稳定(可能被限制访问),外汇历史数据无法获取,且多次查询时响应速度可能较慢。如果只是偶尔查询几个标的价格,这个工具足够用,但高频或大批量使用可能需要额外配置。

📊 多维度评分

适应性4.5
规范性4.1
有效性4
可靠性4.2
可信度4.3

📁 包含文件 (7 个)

📄 SKILL.md 3.2 KB
📄 _meta.json 126 B
📄 providers.md 1 KB
📄 requirements.txt 51 B
📄 scripts/market_quote.py 5.8 KB
📄 scripts/market_series.py 2.6 KB
📄 scripts/market_watchlist.py 3.4 KB