catalog / Finance / yfinance — Yahoo Finance Market Data Connector
ConnectorFinanceFree

yfinance — Yahoo Finance Market Data Connector

The most popular open-source Yahoo Finance connector — historical prices, fundamentals, options chains, and real-time quotes as pandas DataFrames.

インストール数284k
評価★ 4.7
レビュー95
ソースリポジトリ

yfinance — Yahoo Finance Market Data Connector

yfinance is the de-facto open-source connector for Yahoo Finance data, providing easy access to OHLCV price history, dividends, splits, fundamental data (balance sheet, income statement, cash flow), options chains, analyst ratings, and real-time quotes — all as pandas DataFrames.

Key Features

  • Historical OHLCV data for equities, ETFs, indices, forex, crypto, futures
  • Fundamental data: financials, balance sheet, cash flow, earnings calendar
  • Options chain data (calls and puts)
  • Real-time quotes and news headlines
  • Batch download for multiple tickers in one call
  • Proxy support and rate-limit friendly

Quick Start

import yfinance as yf

# Single ticker
msft = yf.Ticker("MSFT")
print(msft.history(period="1y").tail())
print(msft.info["trailingPE"])

# Batch download
df = yf.download(["AAPL","GOOG","AMZN"], start="2023-01-01", end="2024-12-31")
print(df["Close"])
npx ai-supply add yfinance-market-data-connector

Curated mirror of the open-source yfinance (Apache-2.0). Get it from the source.

More from @ai-supply

View profile →
Model
llama.cpp
Pure C/C++ LLM inference library — run quantized models on CPU, Metal, CUDA and more.
900k4.9
Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
820k4.9
Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
820k4.8
Skill
NLTK
The Natural Language Toolkit — Python's foundational NLP library for tokenization, POS tagging, parsing, and corpora.
760k4.7