### 连接今日投资数据MCP服务 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 使用Streamable HTTP或SSE协议连接MCP服务,需要在URL中传递API Key进行鉴权。 ```bash # Streamable HTTP协议连接 curl -X POST "https://data-api.investoday.net/data/mcp?apiKey=YOUR_MCP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method": "tools/list"}' # SSE协议连接 curl -N "https://data-api.investoday.net/data/sse?apiKey=YOUR_MCP_API_KEY" ``` -------------------------------- ### 服务连接配置 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 通过Streamable HTTP或SSE协议连接今日投资数据MCP服务,需在URL中传递API Key进行鉴权。 ```APIDOC ## 服务连接配置 ### Description 通过Streamable HTTP或SSE协议连接今日投资数据MCP服务,需在URL中传递API Key进行鉴权。 ### Method POST (Streamable HTTP), GET (SSE) ### Endpoint `https://data-api.investoday.net/data/mcp?apiKey=YOUR_MCP_API_KEY` (Streamable HTTP) `https://data-api.investoday.net/data/sse?apiKey=YOUR_MCP_API_KEY` (SSE) ### Request Body (Streamable HTTP) - **method** (string) - Required - The method to call, e.g., `"tools/list"` ### Request Example ```bash # Streamable HTTP协议连接 curl -X POST "https://data-api.investoday.net/data/mcp?apiKey=YOUR_MCP_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method": "tools/list"}' # SSE协议连接 curl -N "https://data-api.investoday.net/data/sse?apiKey=YOUR_MCP_API_KEY" ``` ``` -------------------------------- ### 设定价格异动告警 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用set_price_alert工具设定价格异动告警规则,可指定回调地址。 ```javascript // 设定当某指数单日跌幅超过3%时触发提示 const alertConfig = await mcpClient.callTool({ name: "set_price_alert", arguments: { symbol: "000300.SH", condition: "daily_change_percent", operator: "less_than", threshold: -3, callback: "webhook_url", includeRelatedSectors: true } }); ``` -------------------------------- ### 市场与行情工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 获取实时行情、分时/日/周K线、盘口指标、涨跌分布、盘口异动等市场数据。 ```APIDOC ## 市场与行情工具 ### Description 获取实时行情、分时/日/周K线、盘口指标、涨跌分布、盘口异动等市场数据。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `get_realtime_quote` - **symbol** (string) - Required - e.g., `"000300.SH"` - **fields** (array of strings) - Required - e.g., `["price", "change", "changePercent", "volume"]` #### Tool: `get_kline` - **symbol** (string) - Required - e.g., `"600519.SH"` - **period** (string) - Required - e.g., `"day"`, `"week"`, `"month"` - **count** (integer) - Required - Number of periods - **adjust** (string) - Optional - e.g., `"qfq"` (前复权), `"hfq"` (后复权) ### Request Example ```javascript // MCP工具调用示例:获取沪深300实时行情 const result = await mcpClient.callTool({ name: "get_realtime_quote", arguments: { symbol: "000300.SH", // 沪深300指数代码 fields: ["price", "change", "changePercent", "volume"] } }); // 获取某股票近30个交易日的复权日K const klineData = await mcpClient.callTool({ name: "get_kline", arguments: { symbol: "600519.SH", // 贵州茅台 period: "day", count: 30, adjust: "qfq" // 前复权 } }); ``` ``` -------------------------------- ### 文件解析工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 研报/公告PDF附件解析、图片及图表元信息、下载链接等。 ```APIDOC ## 文件解析工具 ### Description 研报/公告PDF附件解析、图片及图表元信息、下载链接等。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `parse_pdf` - **fileUrl** (string) - Required - URL of the PDF file, e.g., `"https://example.com/announcement.pdf"` - **extractTables** (boolean) - Optional - Whether to extract tables - **generateSummary** (boolean) - Optional - Whether to generate a summary ### Request Example ```javascript // 解析某公告PDF,输出表格字段与关键信息摘要 const pdfContent = await mcpClient.callTool({ name: "parse_pdf", arguments: { fileUrl: "https://example.com/announcement.pdf", extractTables: true, generateSummary: true } }); ``` ``` -------------------------------- ### 解析证券信息并获取行业分类 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用resolve_security工具将模糊查询的证券名称解析为标准代码,并可选择返回其行业分类。 ```javascript // 把'茅台'解析为标准证券代码并返回其行业分类 const securityInfo = await mcpClient.callTool({ name: "resolve_security", arguments: { query: "茅台", matchType: "fuzzy", includeIndustry: true, industryStandard: "shenwan" // 申万行业分类 } }); ``` -------------------------------- ### 研报与公告工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 检索券商/机构研报、提取要点、获取公告全文与结构化要素。 ```APIDOC ## 研报与公告工具 ### Description 检索券商/机构研报、提取要点、获取公告全文与结构化要素(事件、对象、日期等)。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `search_research_reports` - **keywords** (array of strings) - Required - Search keywords, e.g., `["新能源车", "产业链"]` - **sentiment** (string) - Optional - e.g., `"positive"`, `"negative"`, `"neutral"` - **days** (integer) - Optional - Number of past days to search - **extractSummary** (boolean) - Optional - Whether to extract summary #### Tool: `parse_announcement` - **announcementId** (string) - Required - Announcement ID, e.g., `"AN202401150001"` - **extractFields** (array of strings) - Optional - Fields to extract, e.g., `["发行对象", "发行价格", "解禁日期"]` ### Request Example ```javascript // 检索近7日新能源车产业链利好研报 const reports = await mcpClient.callTool({ name: "search_research_reports", arguments: { keywords: ["新能源车", "产业链"], sentiment: "positive", days: 7, extractSummary: true } }); // 抽取某上市公司定增公告的结构化信息 const announcement = await mcpClient.callTool({ name: "parse_announcement", arguments: { announcementId: "AN202401150001", extractFields: ["发行对象", "发行价格", "解禁日期"] } }); ``` ``` -------------------------------- ### 个股与基金工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 查询个股财务数据、基金净值、收益与回撤等信息。 ```APIDOC ## 个股与基金工具 ### Description 查询个股财务数据、基金净值、收益与回撤等信息。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `get_financial_report` - **symbol** (string) - Required - Stock symbol, e.g., `"600519.SH"` - **metrics** (array of strings) - Required - Financial metrics, e.g., `["revenue", "net_profit"]` - **periods** (integer) - Required - Number of periods to retrieve - **yoy** (boolean) - Optional - Whether to include year-over-year data #### Tool: `get_fund_nav` - **fundCode** (string) - Required - Fund code, e.g., `"000001"` - **period** (string) - Required - e.g., `"week"`, `"month"` - **duration** (string) - Required - e.g., `"1y"` - **includeDrawdown** (boolean) - Optional - Whether to include drawdown data ### Request Example ```javascript // 查询贵州茅台最近四个季度的营收与净利同比 const financialData = await mcpClient.callTool({ name: "get_financial_report", arguments: { symbol: "600519.SH", metrics: ["revenue", "net_profit"], periods: 4, yoy: true // 同比数据 } }); // 获取某只主动基金近一年周度单位净值与回撤 const fundData = await mcpClient.callTool({ name: "get_fund_nav", arguments: { fundCode: "000001", period: "week", duration: "1y", includeDrawdown: true } }); ``` ``` -------------------------------- ### 获取基金净值与回撤数据 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_fund_nav工具获取基金的单位净值和回撤信息,可指定周期和时长。 ```javascript // 获取某只主动基金近一年周度单位净值与回撤 const fundData = await mcpClient.callTool({ name: "get_fund_nav", arguments: { fundCode: "000001", period: "week", duration: "1y", includeDrawdown: true } }); ``` -------------------------------- ### 新闻与情绪工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 新闻检索、去重聚合、情绪与倾向性标注、热点主题跟踪。 ```APIDOC ## 新闻与情绪工具 ### Description 新闻检索、去重聚合、情绪与倾向性标注、热点主题跟踪。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `get_news_sentiment` - **topic** (string) - Required - News topic, e.g., `"AI服务器"` - **period** (string) - Required - e.g., `"week"`, `"month"` - **minInfluence** (string) - Optional - Minimum influence, e.g., `"high"`, `"medium"`, `"low"` - **aggregate** (boolean) - Optional - Whether to aggregate news - **includeSentimentScore** (boolean) - Optional - Whether to include sentiment score ### Request Example ```javascript // 围绕AI服务器主题汇总本周高影响力新闻并给出情绪评分 const newsAnalysis = await mcpClient.callTool({ name: "get_news_sentiment", arguments: { topic: "AI服务器", period: "week", minInfluence: "high", aggregate: true, includeSentimentScore: true } }); ``` ``` -------------------------------- ### 获取指数收益与最大回撤 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_index_performance工具获取指数在指定时间段内的收益和最大回撤指标。 ```javascript // 输出中证白酒指数近3个月的收益与最大回撤 const indexPerformance = await mcpClient.callTool({ name: "get_index_performance", arguments: { symbol: "399997.SZ", // 中证白酒指数 duration: "3m", metrics: ["return", "maxDrawdown"] } }); ``` -------------------------------- ### 风控与监控工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 价格波动监控、异常成交、主题/舆情告警、阈值触发回调。 ```APIDOC ## 风控与监控工具 ### Description 价格波动监控、异常成交、主题/舆情告警、阈值触发回调。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `set_price_alert` - **symbol** (string) - Required - Symbol to monitor, e.g., `"000300.SH"` - **condition** (string) - Required - Condition to monitor, e.g., `"daily_change_percent"` - **operator** (string) - Required - Operator, e.g., `"less_than"`, `"greater_than"` - **threshold** (number) - Required - Threshold value, e.g., `-3` - **callback** (string) - Required - Callback URL or identifier, e.g., `"webhook_url"` - **includeRelatedSectors** (boolean) - Optional - Whether to include related sectors ### Request Example ```javascript // 设定当某指数单日跌幅超过3%时触发提示 const alertConfig = await mcpClient.callTool({ name: "set_price_alert", arguments: { symbol: "000300.SH", condition: "daily_change_percent", operator: "less_than", threshold: -3, callback: "webhook_url", includeRelatedSectors: true } }); ``` ``` -------------------------------- ### 解析PDF文件内容 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用parse_pdf工具解析PDF文件,可选择提取表格和生成摘要。 ```javascript // 解析某公告PDF,输出表格字段与关键信息摘要 const pdfContent = await mcpClient.callTool({ name: "parse_pdf", arguments: { fileUrl: "https://example.com/announcement.pdf", extractTables: true, generateSummary: true } }); ``` -------------------------------- ### 查询个股财务报告数据 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_financial_report工具查询指定股票代码的财务数据,可指定指标和周期,并获取同比数据。 ```javascript // 查询贵州茅台最近四个季度的营收与净利同比 const financialData = await mcpClient.callTool({ name: "get_financial_report", arguments: { symbol: "600519.SH", metrics: ["revenue", "net_profit"], periods: 4, yoy: true // 同比数据 } }); ``` -------------------------------- ### 指数与板块工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 获取综合指数、主题指数、行业指数的成分股、权重、板块热度与轮动数据。 ```APIDOC ## 指数与板块工具 ### Description 获取综合指数、主题指数、行业指数的成分股、权重、板块热度与轮动数据。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `get_index_performance` - **symbol** (string) - Required - Index symbol, e.g., `"399997.SZ"` - **duration** (string) - Required - e.g., `"3m"`, `"6m"`, `"1y"` - **metrics** (array of strings) - Required - e.g., `["return", "maxDrawdown"]` #### Tool: `get_index_constituents` - **symbol** (string) - Required - Index symbol, e.g., `"000300.SH"` - **sortBy** (string) - Optional - e.g., `"weight"` - **order** (string) - Optional - e.g., `"desc"`, `"asc"` - **limit** (integer) - Optional - Number of constituents to return ### Request Example ```javascript // 输出中证白酒指数近3个月的收益与最大回撤 const indexPerformance = await mcpClient.callTool({ name: "get_index_performance", arguments: { symbol: "399997.SZ", // 中证白酒指数 duration: "3m", metrics: ["return", "maxDrawdown"] } }); // 按权重列出沪深300前20大成分股 const constituents = await mcpClient.callTool({ name: "get_index_constituents", arguments: { symbol: "000300.SH", sortBy: "weight", order: "desc", limit: 20 } }); ``` ``` -------------------------------- ### 交易日历工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 获取交易日历、节假日信息。 ```APIDOC ## 交易日历工具 ### Description 获取交易日历、节假日信息。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `get_trading_calendar` - **market** (string) - Required - Market name, e.g., `"A股"` - **startDate** (string) - Required - Start date, e.g., `"2024-01-01"` - **endDate** (string) - Required - End date, e.g., `"2025-12-31"` - **includeHolidays** (boolean) - Optional - Whether to include holidays ### Request Example ```javascript // 返回2024-01-01至2025-12-31的A股交易日列表 const tradingDays = await mcpClient.callTool({ name: "get_trading_calendar", arguments: { market: "A股", startDate: "2024-01-01", endDate: "2025-12-31", includeHolidays: false } }); ``` ``` -------------------------------- ### 获取沪深300实时行情 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_realtime_quote工具获取指定股票代码的实时行情数据,可指定需要返回的字段。 ```javascript // MCP工具调用示例:获取沪深300实时行情 const result = await mcpClient.callTool({ name: "get_realtime_quote", arguments: { symbol: "000300.SH", // 沪深300指数代码 fields: ["price", "change", "changePercent", "volume"] } }); ``` -------------------------------- ### 基础参考/元数据工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 证券/指数/基金代码映射、名称模糊检索、上市/退市状态、行业分类。 ```APIDOC ## 基础参考/元数据工具 ### Description 证券/指数/基金代码映射、名称模糊检索、上市/退市状态、行业分类(申万/中证等)。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `resolve_security` - **query** (string) - Required - Search query, e.g., `"茅台"` - **matchType** (string) - Optional - e.g., `"fuzzy"`, `"exact"` - **includeIndustry** (boolean) - Optional - Whether to include industry classification - **industryStandard** (string) - Optional - Industry standard, e.g., `"shenwan"`, `"zhongzheng"` ### Request Example ```javascript // 把'茅台'解析为标准证券代码并返回其行业分类 const securityInfo = await mcpClient.callTool({ name: "resolve_security", arguments: { query: "茅台", matchType: "fuzzy", includeIndustry: true, industryStandard: "shenwan" // 申万行业分类 } }); ``` ``` -------------------------------- ### 解析公告并抽取结构化信息 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用parse_announcement工具解析指定公告ID,并抽取指定的结构化信息。 ```javascript // 抽取某上市公司定增公告的结构化信息 const announcement = await mcpClient.callTool({ name: "parse_announcement", arguments: { announcementId: "AN202401150001", extractFields: ["发行对象", "发行价格", "解禁日期"] } }); ``` -------------------------------- ### 生成事件脉冲与受益标的 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用generate_event_pulse工具结合公告与新闻,生成特定行业的事件脉冲和可能受益的标的清单。 ```javascript // 结合公告与新闻,生成军工产业链本周事件脉冲与可能受益标的清单 const eventAnalysis = await mcpClient.callTool({ name: "generate_event_pulse", arguments: { industry: "军工", period: "week", sources: ["announcement", "news"], generateBeneficiaries: true, disclaimer: true // 非投资建议 } }); ``` -------------------------------- ### 列出指数成分股 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_index_constituents工具按指定排序方式和数量列出指数的成分股。 ```javascript // 按权重列出沪深300前20大成分股 const constituents = await mcpClient.callTool({ name: "get_index_constituents", arguments: { symbol: "000300.SH", sortBy: "weight", order: "desc", limit: 20 } }); ``` -------------------------------- ### 特色分析/智能体增强工具 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 主题轮动、事件驱动信号、舆情、财报要点摘要、投资线索生成。 ```APIDOC ## 特色分析/智能体增强工具 ### Description 主题轮动、事件驱动信号、舆情、财报要点摘要、投资线索生成。 ### Method `mcpClient.callTool` (within MCP client) ### Endpoint N/A (Tool call) ### Parameters #### Tool: `generate_event_pulse` - **industry** (string) - Required - Industry name, e.g., `"军工"` - **period** (string) - Required - e.g., `"week"`, `"month"` - **sources** (array of strings) - Optional - Data sources, e.g., `["announcement", "news"]` - **generateBeneficiaries** (boolean) - Optional - Whether to generate potential beneficiaries - **disclaimer** (boolean) - Optional - Whether to include a disclaimer (e.g., "non-investment advice") ### Request Example ```javascript // 结合公告与新闻,生成军工产业链本周事件脉冲与可能受益标的清单 const eventAnalysis = await mcpClient.callTool({ name: "generate_event_pulse", arguments: { industry: "军工", period: "week", sources: ["announcement", "news"], generateBeneficiaries: true, disclaimer: true // 非投资建议 } }); ``` ``` -------------------------------- ### 获取股票近30个交易日日K线数据 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_kline工具获取指定股票代码的日K线数据,可指定复权方式。 ```javascript // 获取某股票近30个交易日的复权日K const klineData = await mcpClient.callTool({ name: "get_kline", arguments: { symbol: "600519.SH", // 贵州茅台 period: "day", count: 30, adjust: "qfq" // 前复权 } }); ``` -------------------------------- ### 获取新闻情绪分析 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_news_sentiment工具汇总指定主题的新闻,并进行情绪评分。 ```javascript // 围绕AI服务器主题汇总本周高影响力新闻并给出情绪评分 const newsAnalysis = await mcpClient.callTool({ name: "get_news_sentiment", arguments: { topic: "AI服务器", period: "week", minInfluence: "high", aggregate: true, includeSentimentScore: true } }); ``` -------------------------------- ### 获取交易日历 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用get_trading_calendar工具获取指定市场和时间范围内的交易日列表。 ```javascript // 返回2024-01-01至2025-12-31的A股交易日列表 const tradingDays = await mcpClient.callTool({ name: "get_trading_calendar", arguments: { market: "A股", startDate: "2024-01-01", endDate: "2025-12-31", includeHolidays: false } }); ``` -------------------------------- ### 检索研报并提取摘要 Source: https://context7.com/kenneth-bro/investoday-mcp/llms.txt 调用search_research_reports工具检索满足条件的研报,并可选择提取研报摘要。 ```javascript // 检索近7日新能源车产业链利好研报 const reports = await mcpClient.callTool({ name: "search_research_reports", arguments: { keywords: ["新能源车", "产业链"], sentiment: "positive", days: 7, extractSummary: true } }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.