Skip to main content
Glama

Yahoo Finance MCP Server

by 16Coffee
MIT License
  • Apple

get_historical_stock_prices

Retrieve historical stock prices for a specified ticker, including date, open, high, low, close, and volume. Customize the period and interval for detailed or long-term price analysis using Yahoo Finance data.

Instructions

获取指定股票的历史价格,返回日期、开盘价、最高价、最低价、收盘价和成交量。 参数说明: ticker: str 股票代码,例如 "AAPL" period : str 支持的周期:1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max; 也可以使用开始和结束日期;默认 "1mo" interval : str 支持的间隔:1m,2m,5m,15m,30m,60m,90m,1h,1d,5d,1wk,1mo,3mo; 分钟级数据最多可追溯60天;默认 "1d"

Input Schema

NameRequiredDescriptionDefault
intervalNo1d
periodNo1mo
tickerYes

Input Schema (JSON Schema)

{ "properties": { "interval": { "default": "1d", "title": "Interval", "type": "string" }, "period": { "default": "1mo", "title": "Period", "type": "string" }, "ticker": { "title": "Ticker", "type": "string" } }, "required": [ "ticker" ], "title": "get_historical_stock_pricesArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/16Coffee/finance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server