← 返回
未分类 中文

commodities

Fetch commodity prices for WTI (Crude Oil), Brent, Natural Gas, and Gold using Yahoo Finance (yfinance). Follow the same pattern as stock-price-checker-pro.
通过 YahooFinance (yfinance) 抓取 WTI(原油)、布伦特、天然气和黄金的大宗商品价格,遵循 stock-price-checker-pro 的实现模式。
youpele52 youpele52 来源
未分类 clawhub v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 575
下载
💾 0
安装
2
版本
#latest

概述

Skill: Commodities

When to use

  • The user asks for current commodity prices (WTI, Brent, Natural Gas, Gold).
  • The user wants daily change, percent change, recent high/low ranges, or recent headlines affecting these commodities.

When NOT to use

  • User wants equities, fundamentals, or portfolio-level analysis — use the stock skills instead.

Authentication

  • No API key required. Uses Yahoo Finance via yfinance.

Commands

Check a commodity price

uv run skills/commodities/src/main.py <SYMBOL>

Examples

uv run skills/commodities/src/main.py CL=F   # WTI Crude Futures (WTI)
uv run skills/commodities/src/main.py BZ=F   # Brent Crude Futures (Brent)
uv run skills/commodities/src/main.py NG=F   # Natural Gas Futures (NG)
uv run skills/commodities/src/main.py GC=F   # Gold Futures (GC)

Ticker Reference (Yahoo Finance)

CommodityYahoo Ticker
-------------------------------
WTI Crude OilCL=F
Brent CrudeBZ=F
Natural GasNG=F
Gold FuturesGC=F

Output

  • Current price, daily change & % change
  • Previous close
  • Today's high / low
  • 2W, 1M, 3M, 6M, 52W high / low ranges
  • Recent headlines (when available)

Notes

  • uv run reads the inline # /// script dependency block in main.py and auto-installs yfinance.
  • Do NOT use web search or curl for these prices — use this script for consistent formatting.

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-05-28 13:13
  • v1.0.0
    2026-05-03 09:14 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 69,747
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 273 📥 100,770
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 141,758