Claude Skill
gadicc/yahoo-finance2
yahoo-finance2 是一个非官方的 Yahoo Finance API,提供 CLI、MCP 服务器和 Claude Skill,支持股票报价、历史数据和市场信息,适合开发者和 AI 代理使用。
概览
仓库信息
安装这个 Skill
$ npx yahoo-finance2 --helpRegistry 信息
$ npx yahoo-finance2 --help$ npx yahoo-finance2 search AMZN$ npx yahoo-finance2 quoteSummary GOOGL$ npx yahoo-finance2 quoteSummary NVDA '{"modules":["assetProfile", "secFilings"]}'$ npm install -g yahoo-finance2
项目简介
yahoo-finance2 是一个非官方的、由社区驱动的 Yahoo Finance API,提供命令行界面(CLI)、MCP 服务器和 Claude Skill(Agent Skill),用于访问金融数据。它使开发者和 AI 代理能够以编程方式查询股票报价、历史数据和市场信息。
Unofficial API for Yahoo Finance with CLI, MCP and Agent Skill
要点
- 非官方的 Yahoo Finance API,支持命令行界面
- MCP 服务器集成,适用于 AI 代理
- Claude Skill(Agent Skill),支持自然语言查询
- 获取股票报价、历史数据和市场信息
- 轻量级、易于使用的 JavaScript/TypeScript 库
使用场景
- 构建金融仪表盘和股票追踪器
- 通过命令行脚本自动化市场数据检索
- 将实时金融数据集成到 AI 代理中
- 对交易策略进行历史数据分析
- 通过自然语言查询获取金融洞察
README 摘要
# yahoo-finance2 Unofficial API for Yahoo Finance with CLI, MCP and Agent Skill. Copyright (c) 2021 by Gadi Cohen and Pilwon Huh. [MIT licensed](./LICENSE). [](https://www.npmjs.com/package/yahoo-finance2) [](https://github.com/gadicc/yahoo-finance2/actions/workflows/release.yaml) [](https://codecov.io/gh/gadicc/yahoo-finance2) [](https://github.com/semantic-release/semantic-release) [](http://www.typescriptlang.org/) [](./LICENSE) You are reading the latest **Development docs**. For the **v2 docs**, click [here](https://github.com/gadicc/yahoo-finance2/tree/2.x). The dev docs are in the process of being updated for the upcoming **v3** - for more info see [UPGRADING](./docs/UPGRADING.md). [Live Demo on CodeSandbox](https://codesandbox.io/p/devbox/gxvftx) (Updated 2024-06-17; NextJS with both RSC and Hook-Relay examples) NB: Recently **the repo was renamed** from `node-yahoo-finance2` to `yahoo-finance2`, and the following **branches were named**, `master` to `main`, and `devel` to `dev`. See [UPGRADING.md#dev](./docs/UPGRADING.md#dev) for the git commands to update your local installation. ## Supported runtimes: - **Bun**: v1+. - **Cloudflare**: Modern releases (we support but don't test for this, please report issues). - **Deno**: v2+. - **Node**: [Current and Active LTS](https://endoflife.date/nodejs)