← 返回
开发者工具

stock-price-checker

Check stock prices using yfinance library. No API key required.
使用yfinance库查看股票价格,无需API密钥
rupprath
开发者工具 clawhub v1.0.0 1 版本 98595 Key: 无需
★ 4
Stars
📥 6,025
下载
💾 1,037
安装
1
版本
#latest

概述

Stock Price Checker

Get current stock prices from Yahoo Finance using the yfinance library.

Quick Commands

cd skills/stock-price-checker

# Check stock price
python3 stock-price.py NVDA

# Check another stock
python3 stock-price.py AAPL

Usage Examples

Check NVIDIA stock:

python3 stock-price.py NVDA

Check VOO (S&P 500 ETF):

python3 stock-price.py VOO

Check QQQ (Nasdaq-100 ETF):

python3 stock-price.py QQQ

Check any stock symbol:

python3 stock-price.py TSLA
python3 stock-price.py MSFT
python3 stock-price.py AAPL

Output Format

{
  "symbol": "NVDA",
  "price": 189.52,
  "change": 3.05,
  "change_percent": 1.64,
  "previous_close": 186.47,
  "market_cap": 4614243483648,
  "volume": 112439494,
  "fifty_two_week_high": 212.19,
  "fifty_two_week_low": 86.62
}

Technical Notes

  • Uses yfinance library to fetch data from Yahoo Finance
  • No API key required
  • Handles errors gracefully
  • Works with most major stocks and ETFs
  • Returns comprehensive data including market cap, volume, and 52-week range

Troubleshooting

  • If the stock symbol is invalid, the script will return an error
  • Some data (like market cap) may not be available for all symbols

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 10:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,779
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,724
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,827