Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Downloads Yahoo Finance prices, options chains, fundamentals, dividends, splits, earnings and financial statements as pandas DataFrames.
Use this skill ↓64% 73%+9 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 14 of 22 without it.
3 of 3 safety checks passed
Not used yet
yfinance downloads Yahoo Finance market data: stock prices, options chains, fundamentals, dividends, splits, earnings, institutional holders, and financial statements. The fastest path from ticker symbol to pandas DataFrame for quant research and backtesting.
uv pip install yfinance
import yfinance as yf
msft = yf.download("MSFT", start="2024-01-01", end="2024-12-31")
print(msft.head())
ticker = yf.Ticker("AAPL")
info = ticker.info
print(f"Market cap: {info['marketCap']:,}")
print(f"PE ratio: {info['trailingPE']}")
print(f"Dividend yield: {info.get('dividendYield', 0)*100:.2f}%")
print(ticker.balance_sheet)
print(ticker.financials)
opt = ticker.option_chain(ticker.options[0])
print(opt.calls[["strike", "lastPrice", "impliedVolatility", "volume"]].head())
print(opt.puts[["strike", "lastPrice", "impliedVolatility", "volume"]].head())
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.