‹ 首页

finance-data

@bitterbot-ai · 收录于 1 周前 · 上游提交 1 周前

Get stock quotes, company info, market data, and crypto prices. No API key needed.

适合你,如果需要快速获取金融行情数据且不想配置API密钥

/ 通过 npx 安装 校验哈希
npx oh-my-skill add bitterbot-ai/bitterbot-desktop/finance-data
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- bitterbot-ai/bitterbot-desktop/finance-data
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify bitterbot-ai/bitterbot-desktop/finance-data
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
2425GitHub stars
~661上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 867a130 · 表述以原文为准
它做什么

装上后,Claude 可以获取股票实时价格、公司信息、市场行情和加密货币价格,无需 API 密钥。

什么时候触发

当你询问某只股票的价格、公司概况、市场热点,或加密货币、外汇汇率时触发。

装好后可以这样说
返回 AAPL 当前价格和 5 日走势。
返回 BTC-USD 的 5 日收盘价。
返回 TSLA 的行业、营收、市盈率等信息。
技能原文 SKILL.md作者撰写 · MIT · 867a130

Finance Data

Real-time and historical financial data via Yahoo Finance (free, no API key).

Stock Quote (current price + 5-day chart)
curl -s "https://query1.finance.yahoo.com/v8/finance/chart/AAPL?interval=1d&range=5d" \
  -H "User-Agent: Mozilla/5.0"

Replace AAPL with any ticker symbol. Response is JSON:

  • chart.result[0].meta.regularMarketPrice — current price
  • chart.result[0].meta.previousClose — previous close
  • chart.result[0].meta.currency — currency
  • chart.result[0].indicators.quote[0].close — closing prices array
Company Profile & Financials
curl -s "https://query1.finance.yahoo.com/v10/finance/quoteSummary/AAPL?modules=assetProfile,financialData,defaultKeyStatistics" \
  -H "User-Agent: Mozilla/5.0"

Useful modules (comma-separated):

  • assetProfile — sector, industry, employees, description
  • financialData — revenue, margins, EPS, recommendation
  • defaultKeyStatistics — P/E, market cap, beta, float
  • incomeStatementHistory — income statements
  • balanceSheetHistory — balance sheet
  • cashflowStatementHistory — cash flows
Market Movers
curl -s "https://query1.finance.yahoo.com/v1/finance/trending/US" \
  -H "User-Agent: Mozilla/5.0"
Multi-Quote (batch)
curl -s "https://query1.finance.yahoo.com/v7/finance/quote?symbols=AAPL,GOOGL,MSFT" \
  -H "User-Agent: Mozilla/5.0"

Returns an array under quoteResponse.result[] with price, change, volume, marketCap for each symbol.

Historical Data (longer range)
curl -s "https://query1.finance.yahoo.com/v8/finance/chart/AAPL?interval=1wk&range=1y" \
  -H "User-Agent: Mozilla/5.0"

Interval options: 1m, 5m, 15m, 1d, 1wk, 1mo Range options: 1d, 5d, 1mo, 3mo, 6mo, 1y, 5y, max

Crypto

Same API, use crypto ticker format:

curl -s "https://query1.finance.yahoo.com/v8/finance/chart/BTC-USD?interval=1d&range=5d" \
  -H "User-Agent: Mozilla/5.0"

Common crypto tickers: BTC-USD, ETH-USD, SOL-USD, DOGE-USD

Forex
curl -s "https://query1.finance.yahoo.com/v8/finance/chart/EURUSD=X?interval=1d&range=1mo" \
  -H "User-Agent: Mozilla/5.0"

Format: {FROM}{TO}=X (e.g., GBPUSD=X, USDJPY=X)

Response Parsing Tips
  • All responses are JSON. Use exec to run curl and parse with JSON.parse().
  • Always include the User-Agent header to avoid 403 errors.
  • Yahoo Finance rate limits are generous for individual use.
  • If a quote endpoint returns empty, try the chart endpoint instead.
  • For crypto and forex, always include =X or -USD suffix.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。