本文へスキップ
Skillpedia
分析とスプレッドシート260k · #498

stocks

できること

Yahoo Financeを使って、現在の株価、企業のシンボル、価格履歴、並べた比較を取得します。暗号資産の価格も扱います。手早く読み取り専用の市場情報を得たい人向けです。

使う場面

  • ✓株式や暗号資産の現在価格を知りたいとき。
  • ✓複数のティッカーを並べて比較したいとき。
  • ✓一定期間の株価の推移を知りたいとき。

スキルのリンク

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/stocks/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/stocks/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Appleの現在の株価と、過去6か月の値動きを教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、Yahoo Financeのデータを読み取り、結果をJSONで返す小さなPythonスクリプトを実行します。APIキーは不要ですが、任意でAlpha Vantageのキーを使うと、不足している項目を補えます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Stocks Skill

Read-only market data via Yahoo Finance. Five commands: quote, search, history, compare, crypto. Python stdlib only — no API key, no pip installs. Yahoo's endpoint is unofficial and may rate-limit or change.

When to Use

  • User asks for a current stock price (AAPL, TSLA, MSFT, ...)
  • User wants to look up a ticker by company name
  • User wants OHLCV history or performance over a date range
  • User wants to compare several tickers side by side
  • User asks for a crypto price (BTC, ETH, SOL, ...)

Prerequisites

Python 3.8+ stdlib only. Optional: set ALPHA_VANTAGE_KEY to enrich market_cap, pe_ratio, and 52-week levels when Yahoo's crumb-protected fields come back null. Free key: https://www.alphavantage.co/support/#api-key

How to Run

Invoke through the terminal tool. Once installed:

SCRIPT=~/.hermes/skills/finance/stocks/scripts/stocks_client.py
python $SCRIPT quote AAPL

All output is JSON on stdout — pipe through jq if you want to slice it.

Quick Reference

python $SCRIPT quote AAPL
python $SCRIPT quote AAPL MSFT GOOGL TSLA
python $SCRIPT search "Tesla"
python $SCRIPT history NVDA --range 6mo
python $SCRIPT compare AAPL MSFT GOOGL
python $SCRIPT crypto BTC ETH SOL

Commands

quote SYMBOL [SYMBOL2 ...]

Current price, change, change%, volume, 52-week high/low.

search QUERY

Find tickers by company name. Returns top 5: symbol, name, exchange, type.

history SYMBOL [--range RANGE]

Daily OHLCV plus stats (min, max, avg, total return %). Ranges: 1mo, 3mo, 6mo, 1y, 5y. Default: 1mo.

compare SYMBOL1 SYMBOL2 [...]

Side-by-side: price, change%, 52-week performance.

crypto SYMBOL [SYMBOL2 ...]

Crypto prices. Pass BTC (the script appends -USD automatically).

Pitfalls

  • Yahoo Finance's API is unofficial. Endpoints can change or rate-limit without notice — if requests start failing, that's why.
  • market_cap and pe_ratio may return null on quote when Yahoo's crumb session isn't established. Set ALPHA_VANTAGE_KEY to backfill.
  • Add a small delay between bulk requests to avoid rate-limiting.
  • This is read-only — no order placement, no account integration.

Verification

python ~/.hermes/skills/finance/stocks/scripts/stocks_client.py quote AAPL

Returns a JSON object with symbol: "AAPL" and a numeric price field.

よくある質問

データは公式ですか?

スキルでは、Yahooのエンドポイントは非公式で、利用制限を受けたり変更されたりする可能性があると記しています。

APIキーは必要ですか?

いいえ。Yahooが時価総額などを返さない場合に備え、任意でAlpha Vantageのキーを追加できます。

出力形式は何ですか?

すべての出力はJSONです。jqなどのツールで絞り込めます。

詳細

作者による元の説明

Stock quotes, history, search, compare, crypto via Yahoo.

repo: NousResearch/hermes-agent

人気

GitHubのスター
260k
ランキング
#498
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル