feat: add investoday MCP Server (#2450)

Co-authored-by: 澄潭 <zty98751@alibaba-inc.com>
This commit is contained in:
Kenneth
2025-06-20 15:58:28 +08:00
committed by GitHub
parent 753022e093
commit ceb8b557dc
4 changed files with 979 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Sector Market Overview
Integrates the latest real-time market data for industry and concept sectors, including detailed information on constituent stocks. It covers key market indicators such as index level, price change percentage, trading volume, total market capitalization, sector rankings, and leading stocks. Designed for intelligent investment research and market trend tracking, it provides comprehensive insights into sector dynamics and constituent stock performance.
## Tool Overview
### Real-Time Daily Market Data for an Industry get_industry_realtime_quote
Enter an industry code to obtain the latest real-time data for that industry, including index level, price change percentage, trading volume, total market capitalization, number of constituent stocks, counts of stocks that hit limit up / rose / fell / remained flat / total stocks, sector ranking by performance, and leading stock information. This is used for real-time tracking of overall industry performance.
### Real-Time Daily Market Data for an Industry and Its Constituent Stocks get_industry_stock_realtime_quote
Enter an industry code to obtain the latest overall real-time market data for that industry—including index level, price change percentage, trading volume, total market capitalization, number of constituent stocks, performance ranking, and leading stock—along with detailed real-time data for all related constituent stocks, such as stock code, name, opening price, current price, price change percentage, and highest/lowest prices. This enables comprehensive analysis of the industrys and its constituents latest market performance.
### Real-Time Daily Market Data for a Concept get_concept_realtime_quote
Enter a concept type (e.g., Juyuan, CLS) and concept code to retrieve the latest real-time market data for the concept sector, including sector name, price change percentage, one-week change, total market capitalization, number of constituent stocks, counts of stocks that hit limit up / rose / fell / remained flat, performance ranking, and leading stock information. This enables efficient tracking of trending market concept sectors.
### Real-Time Daily Market Data for a Concept and Its Constituent Stocks get_concept_stock_realtime_quote
Retrieve the latest real-time market data for a specified concept sector, including concept name, price change percentage, one-week change, total market capitalization, performance ranking, number of constituent stocks, counts of stocks that hit limit up / rose / fell / remained flat, and leading stock information. It also provides real-time data for all constituent stocks under the concept, such as stock code, name, market, opening price, current price, price change percentage, and highest/lowest prices—enabling quick insight into both the overall concept and its constituent stocks latest market performance.
## Usage Guide
### Apply for an APP Code
Visit the [Investoday Data Marketplace](https://data-api.investoday.net/mcp) to apply for your AppCode.
### Configuration Examples
Use the applied appCode to generate in Higress.

View File

@@ -0,0 +1,27 @@
# 板块行情
整合了行业和概念板块的最新实时行情及其成分股明细数据,覆盖指数、涨跌幅、成交量、总市值、涨跌幅排名、领涨股等关键市场指标,面向智能投研与市场热点追踪,助力全方位洞察行业与概念板块的最新动态及成分股表现。
## 工具简介
### 行业的最新实时日行情 get_industry_realtime_quote
输入行业代码,获取该行业的最新实时指数、涨跌幅、成交量、总市值、成分股数量、涨停/上涨/下跌/平盘/总股数、涨跌幅排名、领涨股等关键行情数据,用于实时跟踪行业整体表现。
### 行业及关联成分股的最新实时日行情 get_industry_stock_realtime_quote
输入行业代码,获取该行业的最新整体行情(包括指数、涨跌幅、成交量、总市值、成分股数量、涨跌幅排名、领涨股等)以及所有关联成分股的实时行情明细(包括股票代码、名称、开盘价、当前价、涨跌幅、最高/最低价等),用于全面分析行业及其成分股的最新市场表现。
### 概念的最新实时日行情 get_concept_realtime_quote
输入概念类型(如聚源、财联社)和概念代码,获取该概念板块的最新实时行情数据,包括板块名称、涨跌幅、一周涨跌幅、总市值、成分股数量、涨停/上涨/下跌/平盘股数、涨跌幅排名、领涨股信息等关键指标,便于追踪特定市场热点板块表现。
### 概念及关联成分股的最新实时日行情 get_concept_stock_realtime_quote
获取指定概念板块的最新实时行情,包括概念名称、涨跌幅、一周涨跌幅、总市值、涨跌幅排名、成分股数量、涨停/上涨/下跌/平盘股数、领涨股信息等,以及该概念下所有成分股的实时行情(如股票代码、名称、市场、开盘价、当前价、涨跌幅、最高/最低价等),用于快速洞察概念整体及其成分股的最新市场表现。
## 使用教程
### 申请APICode
访问[今日投资数据市场](https://data-api.investoday.net/mcp)申请appCode。
### 配置地址
使用申请的appCode在higress生成即可。

View File

@@ -0,0 +1,580 @@
{
"openapi": "3.0.0",
"info": {
"title": "板块行情",
"description": "整合了行业和概念板块的最新实时行情及其成分股明细数据,覆盖指数、涨跌幅、成交量、总市值、涨跌幅排名、领涨股等关键市场指标,面向智能投研与市场热点追踪,助力全方位洞察行业与概念板块的最新动态及成分股表现。",
"version": "1.0.0"
},
"servers": [
{
"url": "https://data-api.investoday.net/data"
}
],
"paths": {
"/industry-quote/realtime": {
"get": {
"summary": "行业的最新实时日行情",
"description": "输入行业代码,获取该行业的最新实时指数、涨跌幅、成交量、总市值、成分股数量、涨停/上涨/下跌/平盘/总股数、涨跌幅排名、领涨股等关键行情数据,用于实时跟踪行业整体表现。",
"operationId": "get_industry_realtime_quote",
"parameters": [
{
"name": "industryCode",
"in": "query",
"description": "行业代码",
"required": true,
"schema": {
"type": "string",
"example": "330000"
}
}
],
"responses": {
"200": {
"description": "成功响应行业实时行情",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IndustryRealtimeQuote"
}
}
}
}
}
}
},
"/industry-quote/stock-realtime": {
"get": {
"summary": "行业及关联成分股的最新实时日行情",
"description": "输入行业代码,获取该行业的最新整体行情以及所有关联成分股的实时行情明细,用于全面分析行业及其成分股的最新市场表现。",
"operationId": "get_industry_stock_realtime_quote",
"parameters": [
{
"name": "industryCode",
"in": "query",
"description": "行业代码",
"required": true,
"schema": {
"type": "string",
"example": "330000"
}
}
],
"responses": {
"200": {
"description": "成功响应行业及成分股实时行情",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IndustryStockRealtimeQuote"
}
}
}
}
}
}
},
"/concept-quote/realtime": {
"get": {
"summary": "概念的最新实时日行情",
"description": "输入概念类型(如聚源、财联社)和概念代码,获取该概念板块的最新实时行情数据,包括涨跌幅、一周涨跌幅、总市值、成分股数量、涨停/上涨/下跌/平盘股数、涨跌幅排名、领涨股信息等关键指标。",
"operationId": "get_concept_realtime_quote",
"parameters": [
{
"name": "conceptType",
"in": "query",
"description": "概念类型 (jy-聚源、cls-财联社)",
"required": true,
"schema": {
"type": "string",
"example": "jy"
}
},
{
"name": "conceptCode",
"in": "query",
"description": "概念代码",
"required": true,
"schema": {
"type": "string",
"example": "14060061"
}
}
],
"responses": {
"200": {
"description": "成功响应概念实时行情",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConceptRealtimeQuote"
}
}
}
}
}
}
},
"/concept-quote/stock-realtime": {
"get": {
"summary": "概念及关联成分股的最新实时日行情",
"description": "获取指定概念板块的最新实时行情及其所有成分股的实时行情,用于快速洞察概念整体及其成分股的最新市场表现。",
"operationId": "get_concept_stock_realtime_quote",
"parameters": [
{
"name": "conceptType",
"in": "query",
"description": "概念类型 (jy-聚源、cls-财联社)",
"required": true,
"schema": {
"type": "string",
"example": "jy"
}
},
{
"name": "conceptCode",
"in": "query",
"description": "概念代码",
"required": true,
"schema": {
"type": "string",
"example": "14060061"
}
}
],
"responses": {
"200": {
"description": "成功响应概念及成分股实时行情",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConceptStockRealtimeQuote"
}
}
}
}
}
}
},
"/stocks/concept-classifications": {
"get": {
"summary": "股票所属概念",
"description": "支持根据股票代码、概念代码、日期及存续状态,查询股票所属的全部概念,包括概念代码、详细说明、入选和剔除日期等信息,便于追溯股票的历史及当前概念归属关系和变动。",
"operationId": "get_stock_concept_classifications",
"parameters": [
{
"name": "removalDate",
"in": "query",
"description": "剔除日期",
"required": false,
"schema": {
"type": "string",
"format": "date",
"example": "2021-01-01"
}
},
{
"name": "existenceStatus",
"in": "query",
"description": "当前概念存续状态 1、存续 0 、终止",
"required": false,
"schema": {
"type": "integer",
"example": 1
}
},
{
"name": "selectionDate",
"in": "query",
"description": "入选日期",
"required": false,
"schema": {
"type": "string",
"format": "date",
"example": "2021-01-01"
}
},
{
"name": "conceptClass",
"in": "query",
"description": "概念类型 1是财联社概念、0是聚源概念",
"required": true,
"schema": {
"type": "integer",
"example": 1
}
},
{
"name": "conceptCode",
"in": "query",
"description": "概念代码(可输入多个,用逗号分隔)",
"required": true,
"schema": {
"type": "array",
"items": { "type": "string" },
"example": ["15030008"]
},
"style": "form",
"explode": false
},
{
"name": "stockCode",
"in": "query",
"description": "股票代码(可输入多个,用逗号分隔)",
"required": true,
"schema": {
"type": "array",
"items": { "type": "string" },
"example": ["000001"]
},
"style": "form",
"explode": false
}
],
"responses": {
"200": {
"description": "成功响应股票所属概念",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StockConceptClassificationsResponse"
}
}
}
}
}
}
},
"/concept/basic": {
"get": {
"summary": "概念列表",
"description": "支持用户通过中文自然语言输入概念关键词、板块类别快速检索A股市场的全部概念板块信息。可模糊搜索概念名称也可指定来源分类如“财联社”、“聚源”等用于查询市场热点、主题板块归属为行业分析、主题投资等应用提供底层数据支持。",
"operationId": "get_concept_basic",
"parameters": [
{
"name": "conceptCode",
"in": "query",
"description": "概念代码",
"required": true,
"schema": {
"type": "string",
"items": { "type": "string" },
"example": "000001"
},
"style": "form",
"explode": false
},
{
"name": "conceptName",
"in": "query",
"description": "概念名称(可模糊匹配)",
"required": true,
"schema": {
"type": "string",
"example": "腾讯云概念"
}
},
{
"name": "conceptClass",
"in": "query",
"description": "概念分类(可选: 财联社-C01[默认值],聚源-99)",
"required": true,
"schema": {
"type": "string",
"example": "C01"
}
}
],
"responses": {
"200": {
"description": "成功响应概念科目",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StockCategoryMappingsResponse"
}
}
}
}
}
}
},
"/industry/basic": {
"get": {
"summary": "行业列表",
"description": "用户可输入感兴趣的行业名称、行业类别或行业层级,快速查询当前支持的全部行业信息。可按行业中文名(支持模糊搜索),指定行业体系(如“申万行业”),或根据层级(如一级、二级行业)筛选。返回结果包含行业名称、所属行业体系、行业指数、行业层级等基础信息,可作为后续行业行情、板块分析等业务的基础数据。",
"operationId": "get_industry_basic",
"parameters": [
{
"name": "industryName",
"in": "query",
"description": "行业名称(模糊匹配)",
"required": false,
"schema": {
"type": "string",
"example": "农林牧渔"
}
},
{
"name": "industryType",
"in": "query",
"description": "行业分类体系(可选:申万行业体系-INDUS4_CL[默认])",
"required": false,
"schema": {
"type": "string",
"example": "INDUS4_CL"
}
},
{
"name": "industryLevel",
"in": "query",
"description": "行业等级",
"required": false,
"schema": {
"type": "string",
"example": "1"
}
},
{
"name": "industryCode",
"in": "query",
"description": "行业代码",
"required": false,
"schema": {
"type": "string",
"example": "110000"
}
}
],
"responses": {
"200": {
"description": "成功响应行业列表",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/IndustryBasicResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"IndustryRealtimeQuote": {
"type": "object",
"properties": {
"industryCode": { "type": "string", "description": "行业代码" },
"industryName": { "type": "string", "description": "行业名称" },
"price": { "type": "number", "description": "行业指数" },
"changeRatio": { "type": "number", "description": "行业涨跌幅" },
"volume": { "type": "integer", "description": "行业成交量" },
"changeRatio1W": { "type": "number", "description": "行业一周涨跌幅" },
"totalValue": { "type": "number", "description": "行业总市值" },
"ratioRank": { "type": "integer", "description": "行业涨跌幅排名" },
"industryAmount": { "type": "integer", "description": "行业成分股数量" },
"limitUpAmount": { "type": "integer", "description": "行业涨停股数量" },
"stockUpAmount": { "type": "integer", "description": "行业上涨股数量" },
"stockDownAmount": { "type": "integer", "description": "行业下跌股数量" },
"stockBxAmount": { "type": "integer", "description": "行业平盘股数量" },
"stockAmount": { "type": "integer", "description": "行业股票总数" },
"leadUpStockCode": { "type": "string", "description": "行业领涨股代码" },
"leadUpStockName": { "type": "string", "description": "行业领涨股名称" },
"dataTime": { "type": "string", "format": "date-time", "description": "数据时间" }
},
"required": [
"industryCode",
"industryName",
"price",
"changeRatio",
"volume",
"changeRatio1W",
"totalValue",
"ratioRank",
"industryAmount",
"limitUpAmount",
"stockUpAmount",
"stockDownAmount",
"stockBxAmount",
"stockAmount",
"leadUpStockCode",
"leadUpStockName",
"dataTime"
]
},
"StockRealQuote": {
"type": "object",
"properties": {
"stockCode": { "type": "string", "description": "股票代码" },
"stockName": { "type": "string", "description": "股票名称" },
"marketType": { "type": "string", "description": "市场类型" },
"openPrice": { "type": "number", "description": "开盘价" },
"closePriceYDay": { "type": "number", "description": "昨日收盘价" },
"currentPrice": { "type": "number", "description": "当前价格" },
"changeRatio": { "type": "number", "description": "涨跌幅" },
"highPrice": { "type": "number", "description": "最高价" },
"lowPrice": { "type": "number", "description": "最低价" },
"dataTime": { "type": "string", "format": "date-time", "description": "数据时间" },
"sysTime": { "type": "string", "format": "date-time", "description": "系统时间" },
"status": { "type": "string", "description": "状态" }
},
"required": [
"stockCode",
"stockName",
"marketType",
"openPrice",
"closePriceYDay",
"currentPrice",
"changeRatio",
"highPrice",
"lowPrice",
"dataTime",
"sysTime",
"status"
]
},
"IndustryStockRealtimeQuote": {
"allOf": [
{ "$ref": "#/components/schemas/IndustryRealtimeQuote" },
{
"type": "object",
"properties": {
"stockRealQuotes": {
"type": "array",
"description": "股票实时行情数据列表",
"items": { "$ref": "#/components/schemas/StockRealQuote" }
}
},
"required": ["stockRealQuotes"]
}
]
},
"ConceptRealtimeQuote": {
"type": "object",
"properties": {
"conceptCode": { "type": "string", "description": "概念板块代码" },
"conceptName": { "type": "string", "description": "概念板块名称" },
"changeRatio": { "type": "number", "description": "概念板块涨跌幅" },
"changeRatio1W": { "type": "number", "description": "概念板块一周涨跌幅" },
"ratioRank": { "type": "integer", "description": "概念板块涨跌幅排名(排名值越小涨幅越大)" },
"conceptAmount": { "type": "integer", "description": "概念板块成分股数量" },
"limitUpAmount": { "type": "integer", "description": "概念板块涨停股数量" },
"stockUpAmount": { "type": "integer", "description": "概念板块上涨股数量" },
"stockDownAmount": { "type": "integer", "description": "概念板块下跌股数量" },
"stockBxAmount": { "type": "integer", "description": "概念板块平盘股数量" },
"leadUpStockCode": { "type": "string", "description": "概念板块领涨股代码" },
"leadUpStockName": { "type": "string", "description": "概念板块领涨股名称" },
"totalValue": { "type": "number", "description": "概念板块总市值" },
"dataTime": { "type": "string", "format": "date-time", "description": "数据时间" }
},
"required": [
"conceptCode",
"conceptName",
"changeRatio",
"changeRatio1W",
"ratioRank",
"conceptAmount",
"limitUpAmount",
"stockUpAmount",
"stockDownAmount",
"stockBxAmount",
"leadUpStockCode",
"leadUpStockName",
"totalValue",
"dataTime"
]
},
"ConceptStockRealtimeQuote": {
"allOf": [
{ "$ref": "#/components/schemas/ConceptRealtimeQuote" },
{
"type": "object",
"properties": {
"stockRealQuotes": {
"type": "array",
"description": "股票实时行情数据",
"items": { "$ref": "#/components/schemas/StockRealQuote" }
}
},
"required": ["stockRealQuotes"]
}
]
},
"StockConceptClassification": {
"type": "object",
"properties": {
"conceptName": { "type": "string", "description": "概念名称" },
"conceptCode": { "type": "string", "description": "概念代码" },
"stockCode": { "type": "string", "description": "股票代码" },
"description": { "type": "string", "description": "说明" },
"selectionDate": { "type": "string", "format": "date", "description": "入选日期" },
"removalDate": { "type": "string", "format": "date", "description": "剔除日期" }
},
"required": ["conceptName","conceptCode","stockCode","description","selectionDate","removalDate"]
},
"StockConceptClassificationsResponse": {
"type": "object",
"properties": {
"code": { "type": "integer", "description": "状态码0 成功" },
"msg": { "type": "string", "description": "错误信息" },
"data": {
"type": "array",
"description": "数据",
"items": { "$ref": "#/components/schemas/StockConceptClassification" }
}
},
"required": ["code","msg","data"]
},
"StockCategoryMapping": {
"type": "object",
"properties": {
"conceptName": { "type": "string", "description": "概念名称" },
"conceptCategoryName": { "type": "string", "description": "概念类别名称" },
"parentConceptCode": { "type": "string", "description": "父概念代码" },
"conceptCategoryCode": { "type": "string", "description": "概念类别代码1是财联社概念、0是聚源概念" },
"conceptCode": { "type": "string", "description": "概念代码" },
"conceptLevel": { "type": "integer", "description": "概念级别" }
},
"required": ["conceptName","conceptCategoryName","parentConceptCode","conceptCategoryCode","conceptCode","conceptLevel"]
},
"StockCategoryMappingsResponse": {
"type": "object",
"properties": {
"code": { "type": "integer", "description": "状态码0 成功" },
"msg": { "type": "string", "description": "错误信息" },
"data": {
"type": "array",
"description": "数据",
"items": { "$ref": "#/components/schemas/StockCategoryMapping" }
}
},
"required": ["code","msg","data"]
},
"IndustryBasic": {
"type": "object",
"properties": {
"industryType": { "type": "string", "description": "行业类型(申万行业体系-INDUS4_CL" },
"industryName": { "type": "string", "description": "行业名称" },
"indexCode": { "type": "string", "description": "行业的指数代码" },
"industryCode": { "type": "string", "description": "行业代码" },
"industryLevel": { "type": "string", "description": "行业等级" }
},
"required": ["industryType","industryName","indexCode","industryCode","industryLevel"]
},
"IndustryBasicResponse": {
"type": "object",
"properties": {
"code": { "type": "integer", "description": "状态码0 成功" },
"msg": { "type": "string", "description": "错误信息" },
"data": {
"type": "array",
"description": "数据",
"items": { "$ref": "#/components/schemas/IndustryBasic" }
}
},
"required": ["code","msg","data"]
}
}
}
}

View File

@@ -0,0 +1,346 @@
server:
name: plate-quote
description: 板块行情
config:
appCode: ""
tools:
- name: get_concept_realtime_quote
description: 概念的最新实时日行情 - 输入概念类型(如聚源、财联社)和概念代码,获取该概念板块的最新实时行情数据,包括涨跌幅、一周涨跌幅、总市值、成分股数量、涨停/上涨/下跌/平盘股数、涨跌幅排名、领涨股信息等关键指标。
args:
- name: conceptCode
description: 概念代码
type: string
required: true
position: query
- name: conceptType
description: 概念类型 (jy-聚源、cls-财联社)
type: string
required: true
position: query
requestTemplate:
url: https://data-api.investoday.net/data/concept-quote/realtime
method: GET
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
- **changeRatio**: 概念板块涨跌幅 (Type: number)
- **changeRatio1W**: 概念板块一周涨跌幅 (Type: number)
- **conceptAmount**: 概念板块成分股数量 (Type: integer)
- **conceptCode**: 概念板块代码 (Type: string)
- **conceptName**: 概念板块名称 (Type: string)
- **dataTime**: 数据时间 (Type: string)
- **leadUpStockCode**: 概念板块领涨股代码 (Type: string)
- **leadUpStockName**: 概念板块领涨股名称 (Type: string)
- **limitUpAmount**: 概念板块涨停股数量 (Type: integer)
- **ratioRank**: 概念板块涨跌幅排名(排名值越小涨幅越大) (Type: integer)
- **stockBxAmount**: 概念板块平盘股数量 (Type: integer)
- **stockDownAmount**: 概念板块下跌股数量 (Type: integer)
- **stockUpAmount**: 概念板块上涨股数量 (Type: integer)
- **totalValue**: 概念板块总市值 (Type: number)
## Original Response
- name: get_concept_stock_realtime_quote
description: 概念及关联成分股的最新实时日行情 - 获取指定概念板块的最新实时行情及其所有成分股的实时行情,用于快速洞察概念整体及其成分股的最新市场表现。
args:
- name: conceptCode
description: 概念代码
type: string
required: true
position: query
- name: conceptType
description: 概念类型 (jy-聚源、cls-财联社)
type: string
required: true
position: query
requestTemplate:
url: https://data-api.investoday.net/data/concept-quote/stock-realtime
method: GET
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
## Original Response
- name: get_industry_basic
description: 行业列表 - 用户可输入感兴趣的行业名称、行业类别或行业层级,快速查询当前支持的全部行业信息。可按行业中文名(支持模糊搜索),指定行业体系(如“申万行业”),或根据层级(如一级、二级行业)筛选。返回结果包含行业名称、所属行业体系、行业指数、行业层级等基础信息,可作为后续行业行情、板块分析等业务的基础数据。
args:
- name: industryCode
description: 行业代码
type: string
position: query
- name: industryLevel
description: 行业等级
type: string
position: query
- name: industryName
description: 行业名称(模糊匹配)
type: string
position: query
- name: industryType
description: 行业分类体系(可选:申万行业体系-INDUS4_CL[默认])
type: string
position: query
requestTemplate:
url: https://data-api.investoday.net/data/industry/basic
method: GET
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
- **code**: 状态码0 成功 (Type: integer)
- **data**: 数据 (Type: array)
- **data[].indexCode**: 行业的指数代码 (Type: string)
- **data[].industryCode**: 行业代码 (Type: string)
- **data[].industryLevel**: 行业等级 (Type: string)
- **data[].industryName**: 行业名称 (Type: string)
- **data[].industryType**: 行业类型(申万行业体系-INDUS4_CL (Type: string)
- **msg**: 错误信息 (Type: string)
## Original Response
- name: get_industry_realtime_quote
description: 行业的最新实时日行情 - 输入行业代码,获取该行业的最新实时指数、涨跌幅、成交量、总市值、成分股数量、涨停/上涨/下跌/平盘/总股数、涨跌幅排名、领涨股等关键行情数据,用于实时跟踪行业整体表现。
args:
- name: industryCode
description: 行业代码
type: string
required: true
position: query
requestTemplate:
url: https://data-api.investoday.net/data/industry-quote/realtime
method: GET
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
- **changeRatio**: 行业涨跌幅 (Type: number)
- **changeRatio1W**: 行业一周涨跌幅 (Type: number)
- **dataTime**: 数据时间 (Type: string)
- **industryAmount**: 行业成分股数量 (Type: integer)
- **industryCode**: 行业代码 (Type: string)
- **industryName**: 行业名称 (Type: string)
- **leadUpStockCode**: 行业领涨股代码 (Type: string)
- **leadUpStockName**: 行业领涨股名称 (Type: string)
- **limitUpAmount**: 行业涨停股数量 (Type: integer)
- **price**: 行业指数 (Type: number)
- **ratioRank**: 行业涨跌幅排名 (Type: integer)
- **stockAmount**: 行业股票总数 (Type: integer)
- **stockBxAmount**: 行业平盘股数量 (Type: integer)
- **stockDownAmount**: 行业下跌股数量 (Type: integer)
- **stockUpAmount**: 行业上涨股数量 (Type: integer)
- **totalValue**: 行业总市值 (Type: number)
- **volume**: 行业成交量 (Type: integer)
## Original Response
- name: get_industry_stock_realtime_quote
description: 行业及关联成分股的最新实时日行情 - 输入行业代码,获取该行业的最新整体行情以及所有关联成分股的实时行情明细,用于全面分析行业及其成分股的最新市场表现。
args:
- name: industryCode
description: 行业代码
type: string
required: true
position: query
requestTemplate:
url: https://data-api.investoday.net/data/industry-quote/stock-realtime
method: GET
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
## Original Response
- name: get_concept_basic
description: 概念列表 - 支持用户通过中文自然语言输入概念关键词、板块类别快速检索A股市场的全部概念板块信息。可模糊搜索概念名称也可指定来源分类如“财联社”、“聚源”等用于查询市场热点、主题板块归属为行业分析、主题投资等应用提供底层数据支持。
args:
- name: conceptCode
description: 概念代码
type: string
required: false
items:
type: string
position: query
- name: conceptName
description: 概念名称(可模糊匹配)
type: string
required: false
position: query
- name: conceptClass
description: "概念分类(可选: 财联社-C01[默认值],聚源-99)"
type: string
required: false
position: query
requestTemplate:
url: https://data-api.investoday.net/data/concept/basic
method: GET
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
- **code**: 状态码0 成功 (Type: integer)
- **data**: 数据 (Type: array)
- **data[].conceptCategoryCode**: 概念类别代码1是财联社概念、0是聚源概念 (Type: string)
- **data[].conceptCategoryName**: 概念类别名称 (Type: string)
- **data[].conceptCode**: 概念代码 (Type: string)
- **data[].conceptLevel**: 概念级别 (Type: integer)
- **data[].conceptName**: 概念名称 (Type: string)
- **data[].parentConceptCode**: 父概念代码 (Type: string)
- **msg**: 错误信息 (Type: string)
## Original Response
- name: get_stock_concept_classifications
description: 股票所属概念 - 支持根据股票代码、概念代码、日期及存续状态,查询股票所属的全部概念,包括概念代码、详细说明、入选和剔除日期等信息,便于追溯股票的历史及当前概念归属关系和变动。
args:
- name: conceptClass
description: 概念类型 1是财联社概念、0是聚源概念
type: integer
required: true
position: body
- name: conceptCode
description: 概念代码(可输入多个,用逗号分隔)
type: string
required: false
items:
type: string
position: body
- name: existenceStatus
description: 当前概念存续状态 1、存续 0 、终止
type: integer
position: body
- name: removalDate
description: 剔除日期
type: string
position: body
- name: selectionDate
description: 入选日期
type: string
position: body
- name: stockCode
description: 股票代码(可输入多个,用逗号分隔)
type: array
required: true
items:
type: string
position: body
requestTemplate:
url: https://data-api.investoday.net/data/stocks/concept-classifications
method: POST
headers:
- key: "Content-Type"
value: "application/json"
- key: "appCode"
value: "{{.config.appCode}}"
responseTemplate:
prependBody: |+
# API Response Information
Below is the response from an API call. To help you understand the data, I've provided:
1. A detailed description of all fields in the response structure
2. The complete API response
## Response Structure
> Content-Type: application/json
- **code**: 状态码0 成功 (Type: integer)
- **data**: 数据 (Type: array)
- **data[].conceptCode**: 概念代码 (Type: string)
- **data[].conceptName**: 概念名称 (Type: string)
- **data[].description**: 说明 (Type: string)
- **data[].removalDate**: 剔除日期 (Type: string)
- **data[].selectionDate**: 入选日期 (Type: string)
- **data[].stockCode**: 股票代码 (Type: string)
- **msg**: 错误信息 (Type: string)
## Original Response