Markets and trading · Independent · 23 Oct 2026

gadicc/yahoo-finance2

Unofficial API for Yahoo Finance with CLI, MCP and Agent Skill

← Markets and trading
yahoo-finance2: financial data tool. Pulls stock quotes and reports from Yahoo Finance.

In simple English

This library lets your programs pull stock prices and financial reports from Yahoo Finance. You can search for companies, get historical prices, and load balance sheets without paying for a data feed. It works from the command line or inside JavaScript projects. Because Yahoo does not provide an official API, changes on their website can sometimes break your scripts.

What it is

An unofficial software library for Node.js, Bun, and Deno that wraps Yahoo Finance data into structured TypeScript objects. It includes a command-line interface and support for AI coding agents.

What it is good for

Solo builders who want to add stock quotes, company profiles, or historical financial charts to their personal projects without paying for expensive market data subscriptions.

Stars808
LicenceMIT
Latestv4.0.5 (2026-10-21)checked 23 Oct 2026
Last code change2026-10-22
Written inHTML
Setup effort
2 / 5
Payoff
4 / 5
Good
  • Fetches real-time quotes, charts, and historical prices for free.
  • Includes a command-line tool so you can check stock data directly from your terminal.
  • Written in TypeScript for easy auto-completion and type checking in your editor.
Watch for
  • Relies on an unofficial source, meaning Yahoo can change their site and break your queries at any time.
  • Cannot run directly inside a web browser due to security restrictions, so you must run it on a server.
  • Delisted stocks lose all historical data on Yahoo, causing queries for them to fail permanently.
Replaces

manual web scraping of Yahoo Finance pages

Works well with

Node.js

Similar repositories
  • ranaroussi/yfinance26k stars

    A popular Python library that downloads historical market data from Yahoo Finance.

Also reviewed on Repo Radar
  • jesse-ai/jesse8.7k stars

    A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.

  • hummingbot/hummingbot20k stars

    A free framework for writing and running automated trading programs on cryptocurrency exchanges.

  • lballabio/QuantLib7.7k stars

    The long-established free library for pricing and risk-managing financial instruments.

Install
npm install yahoo-finance2

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Trading & Investing › Market Data & Connectivity › Market Data APIs.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.