← 返回
数据分析 Key

finance

Track stocks, ETFs, indices, crypto (where available), and FX pairs with caching + provider fallbacks.
追踪股票、ETF、指数、加密货币及外汇对,支持缓存与提供商故障转移。
anton-roos
数据分析 clawhub v1.1.2 1 版本 99619.7 Key: 需要
★ 18
Stars
📥 18,498
下载
💾 4,548
安装
1
版本
#latest

概述

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.

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-03-27 23:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 269 📥 56,891
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,968
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,678