Access Yahoo Finance Dataのロゴ

Access Yahoo Finance Data

組織
rondoflow
access-yahoo-finance-data

Access Yahoo Finance data including real-time pricing, fundamentals, analyst estimates, options, news, and historical data via the yahooquery Python library.

概要

公開者rondoflow
リポジトリrondoflow
スキル名access-yahoo-finance-data
スター
29
フォーク
2
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    rondoflowがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Access Yahoo Finance Data」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/rondoflow/rondoflow/tree/master/packages/catalog/content/skills/access-yahoo-finance-data
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rondoflow/rondoflow.git /tmp/rondoflow
mkdir -p .claude/skills
cp -r /tmp/rondoflow/packages/catalog/content/skills/access-yahoo-finance-data .claude/skills/access-yahoo-finance-data
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAccess Yahoo Finance Dataを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAccess Yahoo Finance Dataを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Access Yahoo Finance Dataは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

yahooquery Skill

Comprehensive access to Yahoo Finance data via the yahooquery Python library. This library provides programmatic access to nearly all Yahoo Finance endpoints, including real-time pricing, fundamentals, analyst estimates, options, news, and premium research.

Core Classes

1. Ticker (Company-Specific Data)

The primary interface for retrieving data about one or more securities.

python
from yahooquery import Ticker

# Single or multiple symbols
aapl = Ticker('AAPL')
tickers = Ticker('AAPL MSFT NVDA', asynchronous=True)

2. Screener (Predefined Stock Lists)

Access to pre-built screeners for discovering stocks by criteria.

python
from yahooquery import Screener

s = Screener()
screeners = s.available_screeners  # List all available screeners
data = s.get_screeners(['day_gainers', 'most_actives'], count=10)

3. Research (Premium Subscription Required)

Access proprietary research reports and trade ideas.

python
from yahooquery import Research

r = Research(username='you@email.com', password='password')
reports = r.reports(report_type='Analyst Report', report_date='Last Week')
trades = r.trades(trend='Bullish', term='Short term')

Ticker Class: Data Modules

The Ticker class exposes dozens of data endpoints via properties and methods.

📊 Financial Statements

  • .income_statement(frequency='a', trailing=True) - Income statement (annual/quarterly)
  • .balance_sheet(frequency='a', trailing=True) - Balance sheet
  • .cash_flow(frequency='a', trailing=True) - Cash flow statement
  • .all_financial_data(frequency='a') - Combined financials + valuation measures
  • .valuation_measures - EV/EBITDA, P/E, P/B, P/S across periods

📈 Pricing & Market Data

  • .price - Current pricing, market cap, 52-week range
  • .history(period='1y', interval='1d', start=None, end=None) - Historical OHLC
    • period: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
    • interval: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
  • .option_chain - Full options chain (all expirations)

🔍 Analysis & Estimates

  • .calendar_events - Next earnings date, EPS/revenue estimates
  • .earning_history - Actual vs. estimated EPS (last 4 quarters)
  • .earnings - Historical quarterly/annual earnings and revenue
  • .earnings_trend - Analyst estimates for upcoming periods
  • .recommendation_trend - Buy/Sell/Hold rating changes over time
  • .gradings - Recent analyst upgrades/downgrades

🏢 Company Fundamentals

  • .asset_profile - Address, industry, sector, business summary, officers
  • .company_officers - Executives with compensation details
  • .summary_profile - Condensed company information
  • .key_stats - Forward P/E, profit margin, beta, shares outstanding
  • .financial_data - Financial KPIs (ROE, ROA, debt-to-equity, margins)

👥 Ownership & Governance

  • .insider_holders - List of insider holders and positions
  • .insider_transactions - Recent buy/sell transactions by insiders
  • .institution_ownership - Top institutional holders
  • .fund_ownership - Top mutual fund holders
  • .major_holders - Ownership summary (institutional %, insider %, float)

🌍 ESG & Ratings

  • .esg_scores - Environmental, Social, Governance scores and controversies
  • .recommendation_rating - Analyst consensus (Strong Buy → Strong Sell)

📰 News & Insights

  • .news() - Recent news articles
  • .technical_insights - Bullish/bearish technical patterns

💰 Funds & ETFs Only

  • .fund_holding_info - Top holdings, bond/equity breakdown
  • .fund_performance - Historical performance and returns
  • .fund_bond_holdings / .fund_bond_ratings - Bond maturity and credit ratings
  • .fund_equity_holdings - P/E, P/B, P/S for equity holdings

📊 Other Modules

  • .summary_detail - Trading stats (day high/low, volume, avg volume)
  • .default_key_statistics - Enterprise value, trailing P/E, forward P/E
  • .index_trend - Performance relative to a benchmark index
  • .quote_type - Security type, exchange, market

Global Functions

python
import yahooquery as yq

# Search
results = yq.search('NVIDIA')

# Market Data
market = yq.get_market_summary(country='US')  # Major indices snapshot
trending = yq.get_trending(country='US')  # Trending tickers

# Utilities
currencies = yq.get_currencies()  # List of supported currencies
exchanges = yq.get_exchanges()  # List of exchanges
rate = yq.currency_converter('USD', 'EUR')  # Exchange rate

Configuration & Keyword Arguments

The Ticker, Screener, and Research classes accept these optional parameters:

Performance & Reliability

  • asynchronous=True - Make requests asynchronously (for multiple symbols)
  • max_workers=8 - Number of concurrent workers (when async)
  • retry=5 - Number of retry attempts
  • backoff_factor=0.3 - Exponential backoff between retries
  • status_forcelist=[429, 500, 502, 503, 504] - HTTP codes to retry
  • timeout=5 - Request timeout in seconds

Data Format & Validation

  • formatted=False - If True, returns data with {raw, fmt, longFmt} structure
  • validate=True - Validate symbols on instantiation (invalid → .invalid_symbols)
  • country='United States' - Regional data/news (france, germany, canada, etc.)

Network & Auth

  • proxies={'http': 'http://proxy:port'} - HTTP/HTTPS proxy
  • user_agent='...' - Custom user agent string
  • verify=True - SSL certificate verification
  • username='you@email.com' / password='...' - Yahoo Finance Premium login

Advanced (Shared Sessions)

  • session=... / crumb=... - Share auth between Research and Ticker instances

Best Practices

1. Async for Multiple Symbols

python
tickers = Ticker('AAPL MSFT NVDA TSLA', asynchronous=True)
prices = tickers.price  # Returns dict keyed by symbol

2. Handling DataFrames

Most financial methods return pandas.DataFrame. Convert for JSON output:

python
df = aapl.income_statement()
print(df.to_json(orient='records', date_format='iso'))

3. Historical Data - 1-Minute Intervals

Yahoo limits 1-minute data to 7 days per request. For 30 days:

python
tickers = Ticker('AAPL', asynchronous=True)
df = tickers.history(period='1mo', interval='1m')  # Makes 4 requests automatically

4. Premium Users: Combining Research + Ticker

python
r = Research(username='...', password='...')
reports = r.reports(sector='Technology', investment_rating='Bullish')

# Reuse session for Ticker
tickers = Ticker('AAPL', session=r.session, crumb=r.crumb)
data = tickers.asset_profile

Common Use Cases

Portfolio Analysis

python
portfolio = Ticker('AAPL MSFT NVDA', asynchronous=True)
summary = portfolio.summary_detail
earnings = portfolio.earnings
history = portfolio.history(period='1y')

Screening & Discovery

python
s = Screener()
gainers = s.get_screeners(['day_gainers'], count=20)
# Returns DataFrame with price, volume, % change, etc.

Options Analysis

python
nvda = Ticker('NVDA')
options = nvda.option_chain
# Filter for calls/puts, strikes, expirations

Earnings Calendar

python
tickers = Ticker('AAPL MSFT NVDA')
calendar = tickers.calendar_events
# Shows next earnings date + analyst estimates

Reference Documentation

Full API docs at: /Users/henryzha/.openclaw/workspace-research/skills/yahooquery/references/

  • index.md - Overview of classes and functions
  • ticker/ - Detailed breakdown of all Ticker methods
  • screener.md - Screener class guide
  • research.md - Research class (Premium)
  • keyword_arguments.md - Complete list of configuration options
  • misc.md - Global utility functions
  • advanced.md - Sharing sessions between Research and Ticker

Environment

  • Installation: python3 -m pip install yahooquery
  • Dependencies: pandas, requests-futures, tqdm, beautifulsoup4, lxml
  • Python Version: 3.7+

Notes

  • Yahoo Finance may rate-limit or block requests. Use retry, backoff_factor, and status_forcelist for robustness.
  • Premium features (Research class) require a paid Yahoo Finance Premium subscription.
  • Data accuracy and availability depend on Yahoo Finance's upstream data providers.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Access Yahoo Finance Data」では何ができますか?

Access Yahoo Finance data including real-time pricing, fundamentals, analyst estimates, options, news, and historical data via the yahooquery Python library.

TypingMindでAccess Yahoo Finance Dataを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Access Yahoo Finance Dataはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAccess Yahoo Finance Dataをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/rondoflow/rondoflow/tree/master/packages/catalog/content/skills/access-yahoo-finance-dataを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Access Yahoo Finance Dataを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Access Yahoo Finance Dataで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAccess Yahoo Finance Dataを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Access Yahoo Finance Data」は無料ですか?

はい。rondoflowがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇