feat(FEAT-MO-001): 增加市场概览分模块接口
This commit is contained in:
@@ -1,6 +1,41 @@
|
||||
{
|
||||
"components": {
|
||||
"schemas": {
|
||||
"BreadthDataDto": {
|
||||
"properties": {
|
||||
"advancing": { "type": "number" },
|
||||
"declining": { "type": "number" },
|
||||
"unchanged": { "type": "number" }
|
||||
},
|
||||
"required": ["advancing", "declining", "unchanged"],
|
||||
"type": "object"
|
||||
},
|
||||
"BreadthResponseDto": {
|
||||
"properties": {
|
||||
"asOf": { "format": "date-time", "type": "string" },
|
||||
"data": {
|
||||
"allOf": [{ "$ref": "#/components/schemas/BreadthDataDto" }],
|
||||
"nullable": true,
|
||||
"type": "object"
|
||||
},
|
||||
"snapshotId": { "type": "string" },
|
||||
"source": { "enum": ["tdx"], "type": "string" },
|
||||
"status": {
|
||||
"enum": ["fresh", "delayed", "partial", "unavailable"],
|
||||
"type": "string"
|
||||
},
|
||||
"warnings": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": [
|
||||
"snapshotId",
|
||||
"asOf",
|
||||
"source",
|
||||
"status",
|
||||
"warnings",
|
||||
"data"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"DependencyHealthDto": {
|
||||
"properties": {
|
||||
"detail": { "type": "string" },
|
||||
@@ -12,6 +47,39 @@
|
||||
"required": ["status", "detail"],
|
||||
"type": "object"
|
||||
},
|
||||
"FundDataDto": {
|
||||
"properties": {
|
||||
"items": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": ["items"],
|
||||
"type": "object"
|
||||
},
|
||||
"FundsResponseDto": {
|
||||
"properties": {
|
||||
"asOf": { "format": "date-time", "type": "string" },
|
||||
"data": {
|
||||
"allOf": [{ "$ref": "#/components/schemas/FundDataDto" }],
|
||||
"nullable": true,
|
||||
"type": "object"
|
||||
},
|
||||
"snapshotId": { "type": "string" },
|
||||
"source": { "enum": ["tdx"], "type": "string" },
|
||||
"status": {
|
||||
"enum": ["fresh", "delayed", "partial", "unavailable"],
|
||||
"type": "string"
|
||||
},
|
||||
"warnings": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": [
|
||||
"snapshotId",
|
||||
"asOf",
|
||||
"source",
|
||||
"status",
|
||||
"warnings",
|
||||
"data"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"HealthDependenciesDto": {
|
||||
"properties": {
|
||||
"mysql": { "$ref": "#/components/schemas/DependencyHealthDto" },
|
||||
@@ -32,6 +100,132 @@
|
||||
},
|
||||
"required": ["status", "process", "checkedAt", "dependencies"],
|
||||
"type": "object"
|
||||
},
|
||||
"IndexQuoteDto": {
|
||||
"properties": {
|
||||
"changePercent": { "nullable": true, "type": "number" },
|
||||
"code": { "type": "string" },
|
||||
"direction": { "enum": ["up", "down", "flat"], "type": "string" },
|
||||
"name": { "type": "string" },
|
||||
"price": { "type": "number" },
|
||||
"tradeDate": { "type": "string" }
|
||||
},
|
||||
"required": ["code", "name", "price", "direction", "tradeDate"],
|
||||
"type": "object"
|
||||
},
|
||||
"IndicesDataDto": {
|
||||
"properties": {
|
||||
"items": {
|
||||
"items": { "$ref": "#/components/schemas/IndexQuoteDto" },
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"required": ["items"],
|
||||
"type": "object"
|
||||
},
|
||||
"IndicesResponseDto": {
|
||||
"properties": {
|
||||
"asOf": { "format": "date-time", "type": "string" },
|
||||
"data": {
|
||||
"allOf": [{ "$ref": "#/components/schemas/IndicesDataDto" }],
|
||||
"nullable": true,
|
||||
"type": "object"
|
||||
},
|
||||
"snapshotId": { "type": "string" },
|
||||
"source": { "enum": ["tdx"], "type": "string" },
|
||||
"status": {
|
||||
"enum": ["fresh", "delayed", "partial", "unavailable"],
|
||||
"type": "string"
|
||||
},
|
||||
"warnings": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": [
|
||||
"snapshotId",
|
||||
"asOf",
|
||||
"source",
|
||||
"status",
|
||||
"warnings",
|
||||
"data"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SectorDataDto": {
|
||||
"properties": {
|
||||
"items": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": ["items"],
|
||||
"type": "object"
|
||||
},
|
||||
"SectorsResponseDto": {
|
||||
"properties": {
|
||||
"asOf": { "format": "date-time", "type": "string" },
|
||||
"data": {
|
||||
"allOf": [{ "$ref": "#/components/schemas/SectorDataDto" }],
|
||||
"nullable": true,
|
||||
"type": "object"
|
||||
},
|
||||
"snapshotId": { "type": "string" },
|
||||
"source": { "enum": ["tdx"], "type": "string" },
|
||||
"status": {
|
||||
"enum": ["fresh", "delayed", "partial", "unavailable"],
|
||||
"type": "string"
|
||||
},
|
||||
"warnings": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": [
|
||||
"snapshotId",
|
||||
"asOf",
|
||||
"source",
|
||||
"status",
|
||||
"warnings",
|
||||
"data"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SummaryDataDto": {
|
||||
"properties": {
|
||||
"drivers": { "items": { "type": "string" }, "type": "array" },
|
||||
"marketStatus": { "type": "string" },
|
||||
"risks": { "items": { "type": "string" }, "type": "array" },
|
||||
"sentimentStatus": { "type": "string" },
|
||||
"verdict": { "type": "string" },
|
||||
"volumeStatus": { "type": "string" }
|
||||
},
|
||||
"required": [
|
||||
"verdict",
|
||||
"marketStatus",
|
||||
"volumeStatus",
|
||||
"sentimentStatus",
|
||||
"drivers",
|
||||
"risks"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"SummaryResponseDto": {
|
||||
"properties": {
|
||||
"asOf": { "format": "date-time", "type": "string" },
|
||||
"data": {
|
||||
"allOf": [{ "$ref": "#/components/schemas/SummaryDataDto" }],
|
||||
"nullable": true,
|
||||
"type": "object"
|
||||
},
|
||||
"snapshotId": { "type": "string" },
|
||||
"source": { "enum": ["tdx"], "type": "string" },
|
||||
"status": {
|
||||
"enum": ["fresh", "delayed", "partial", "unavailable"],
|
||||
"type": "string"
|
||||
},
|
||||
"warnings": { "items": { "type": "string" }, "type": "array" }
|
||||
},
|
||||
"required": [
|
||||
"snapshotId",
|
||||
"asOf",
|
||||
"source",
|
||||
"status",
|
||||
"warnings",
|
||||
"data"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -67,6 +261,91 @@
|
||||
},
|
||||
"tags": ["health"]
|
||||
}
|
||||
},
|
||||
"/api/v1/market-overview/breadth": {
|
||||
"get": {
|
||||
"operationId": "MarketOverviewController_getBreadth",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": { "$ref": "#/components/schemas/BreadthResponseDto" }
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": ["market-overview"]
|
||||
}
|
||||
},
|
||||
"/api/v1/market-overview/funds": {
|
||||
"get": {
|
||||
"operationId": "MarketOverviewController_getFunds",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": { "$ref": "#/components/schemas/FundsResponseDto" }
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": ["market-overview"]
|
||||
}
|
||||
},
|
||||
"/api/v1/market-overview/indices": {
|
||||
"get": {
|
||||
"operationId": "MarketOverviewController_getIndices",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": { "$ref": "#/components/schemas/IndicesResponseDto" }
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": ["market-overview"]
|
||||
}
|
||||
},
|
||||
"/api/v1/market-overview/sectors": {
|
||||
"get": {
|
||||
"operationId": "MarketOverviewController_getSectors",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": { "$ref": "#/components/schemas/SectorsResponseDto" }
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": ["market-overview"]
|
||||
}
|
||||
},
|
||||
"/api/v1/market-overview/summary": {
|
||||
"get": {
|
||||
"operationId": "MarketOverviewController_getSummary",
|
||||
"parameters": [],
|
||||
"responses": {
|
||||
"200": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": { "$ref": "#/components/schemas/SummaryResponseDto" }
|
||||
}
|
||||
},
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"tags": ["market-overview"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"servers": [],
|
||||
|
||||
Reference in New Issue
Block a user