# Yahoo Finance2

Use when building with the yahoo-finance2 TypeScript/Deno/npm library, using its Yahoo...

- Repository: https://github.com/gadicc/yahoo-finance2 (811 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add gadicc/yahoo-finance2 --skill yahoo-finance2 -g -a claude-code -y`
Codex: `npx skills add gadicc/yahoo-finance2 --skill yahoo-finance2 -g -a codex -y`
Cursor: `npx skills add gadicc/yahoo-finance2 --skill yahoo-finance2 -g -a cursor -y`
Gemini CLI: `npx skills add gadicc/yahoo-finance2 --skill yahoo-finance2 -g -a gemini-cli -y`

## Description

Use when building with the yahoo-finance2 TypeScript/Deno/npm library, using its Yahoo Finance data modules, CLI, or MCP server, or contributing to the yahoo-finance2 repository including modules, validation schemas, cached fixtures, and npm/JSR build output.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# yahoo-finance2

## What this skill is for

Use this skill when a task involves `yahoo-finance2`, including:

- Adding Yahoo Finance market data to a server-side JavaScript/TypeScript app.
- Choosing between `quote`, `chart`, `historical`, `quoteSummary`,
  `fundamentalsTimeSeries`, `screener`, `options`, or other modules.
- Using the package CLI or bundled MCP server.
- Modifying this repository's Deno source, tests, generated schemas, docs, or
  npm output build.

This is an unofficial Yahoo Finance client. Do not describe it as a supported
Yahoo API, and do not assume Yahoo data availability, freshness, or shape is
guaranteed.

## Using the package

Prefer the v3 class API:

```ts
import YahooFinance from "yahoo-finance2";

const yahooFinance = new YahooFinance();
const quote = await yahooFinance.quote("AAPL");
console.log(quote?.regularMarketPrice, quote?.currency);
```

Do not use old v1/v2 singleton patterns such as
`yahooFinance.setGlobalConfig()`. In v3, instantiate with
`new YahooFinance(options)`.

This package is for server-side runtimes. Do not put direct Yahoo Finance calls
in browser/client bundles; Yahoo's CORS and cookie behavior require a server,
serverless, edge, Deno, Bun, or Node context.

## Module selection

The rest: https://github.com/gadicc/yahoo-finance2/blob/HEAD/skills/yahoo-finance2/SKILL.md
