Skip to main content
Glama

FinanceMCP

MIT License
603
60
  • Apple
  • Linux

stock_data

Retrieve historical stock data for A-shares, U.S. stocks, Hong Kong stocks, forex, futures, funds, bonds, and options. Specify codes, market types, date ranges, and technical indicators for comprehensive analysis.

Instructions

获取指定股票的历史行情数据,支持A股、美股、港股、外汇、期货、基金、债券逆回购、可转债、期权

Input Schema

NameRequiredDescriptionDefault
codeYes股票代码,如'000001.SZ'表示平安银行(A股),'AAPL'表示苹果(美股),'00700.HK'表示腾讯(港股),'USDCNH.FXCM'表示美元人民币(外汇),'CU2501.SHF'表示铜期货,'159919.SZ'表示沪深300ETF(基金),'204001.SH'表示GC001国债逆回购,'113008.SH'表示可转债,'10001313.SH'表示期权合约
end_dateNo结束日期,格式为YYYYMMDD,如'20230131'
indicatorsNo需要计算的技术指标,多个指标用空格分隔。支持的指标:macd(MACD指标)、rsi(相对强弱指标)、kdj(随机指标)、boll(布林带)、ma(均线指标)。必须明确指定参数,例如:'macd(12,26,9) rsi(14) kdj(9,3,3) boll(20,2) ma(10)'
market_typeYes市场类型(必需),可选值:cn(A股),us(美股),hk(港股),fx(外汇),futures(期货),fund(基金),repo(债券逆回购),convertible_bond(可转债),options(期权)
start_dateNo起始日期,格式为YYYYMMDD,如'20230101'

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "股票代码,如'000001.SZ'表示平安银行(A股),'AAPL'表示苹果(美股),'00700.HK'表示腾讯(港股),'USDCNH.FXCM'表示美元人民币(外汇),'CU2501.SHF'表示铜期货,'159919.SZ'表示沪深300ETF(基金),'204001.SH'表示GC001国债逆回购,'113008.SH'表示可转债,'10001313.SH'表示期权合约", "type": "string" }, "end_date": { "description": "结束日期,格式为YYYYMMDD,如'20230131'", "type": "string" }, "indicators": { "description": "需要计算的技术指标,多个指标用空格分隔。支持的指标:macd(MACD指标)、rsi(相对强弱指标)、kdj(随机指标)、boll(布林带)、ma(均线指标)。必须明确指定参数,例如:'macd(12,26,9) rsi(14) kdj(9,3,3) boll(20,2) ma(10)'", "type": "string" }, "market_type": { "description": "市场类型(必需),可选值:cn(A股),us(美股),hk(港股),fx(外汇),futures(期货),fund(基金),repo(债券逆回购),convertible_bond(可转债),options(期权)", "type": "string" }, "start_date": { "description": "起始日期,格式为YYYYMMDD,如'20230101'", "type": "string" } }, "required": [ "code", "market_type" ], "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/guangxiangdebizi/FinanceMCP'

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