@investoday/investoday-api 1.9.49 → 1.9.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/openapi.json +162 -5
- package/data/tree.json +15 -0
- package/package.json +1 -1
package/data/openapi.json
CHANGED
|
@@ -24922,6 +24922,168 @@
|
|
|
24922
24922
|
}
|
|
24923
24923
|
]
|
|
24924
24924
|
},
|
|
24925
|
+
"post": {
|
|
24926
|
+
"tags": [
|
|
24927
|
+
"指数估值信息"
|
|
24928
|
+
],
|
|
24929
|
+
"summary": "指数估值信息",
|
|
24930
|
+
"description": "通过指数代码和时间范围查询指数的估值信息,包括指数名称、发布机构、市场类型、行情时间、总市值、市盈率、市净率、换手率和股息率等核心数据,适用于金融分析和市场研究。",
|
|
24931
|
+
"operationId": "get_index_valuation",
|
|
24932
|
+
"requestBody": {
|
|
24933
|
+
"description": "通过指数代码和时间范围查询指数的估值信息,包括指数名称、发布机构、市场类型、行情时间、总市值、市盈率、市净率、换手率和股息率等核心数据,适用于金融分析和市场研究。",
|
|
24934
|
+
"content": {
|
|
24935
|
+
"application/json": {
|
|
24936
|
+
"schema": {
|
|
24937
|
+
"type": "object",
|
|
24938
|
+
"properties": {
|
|
24939
|
+
"indexCode": {
|
|
24940
|
+
"type": "string",
|
|
24941
|
+
"description": "指数代码【与indexCodes组成多选一参数,必须且只能传递其中一个】",
|
|
24942
|
+
"example": "399300"
|
|
24943
|
+
},
|
|
24944
|
+
"indexCodes": {
|
|
24945
|
+
"type": "array",
|
|
24946
|
+
"description": "指数代码列表【与indexCode组成多选一参数,必须且只能传递其中一个】",
|
|
24947
|
+
"example": [
|
|
24948
|
+
"399300",
|
|
24949
|
+
"399301"
|
|
24950
|
+
],
|
|
24951
|
+
"items": {
|
|
24952
|
+
"type": "string"
|
|
24953
|
+
}
|
|
24954
|
+
},
|
|
24955
|
+
"beginDate": {
|
|
24956
|
+
"type": "string",
|
|
24957
|
+
"description": "开始日期(格式yyyy-MM-dd)",
|
|
24958
|
+
"example": "2025-11-04"
|
|
24959
|
+
},
|
|
24960
|
+
"endDate": {
|
|
24961
|
+
"type": "string",
|
|
24962
|
+
"description": "结束日期(格式yyyy-MM-dd)",
|
|
24963
|
+
"example": "2025-11-04"
|
|
24964
|
+
},
|
|
24965
|
+
"pageNum": {
|
|
24966
|
+
"type": "integer",
|
|
24967
|
+
"format": "int32",
|
|
24968
|
+
"description": "页码。\n最小值:1;",
|
|
24969
|
+
"example": 1
|
|
24970
|
+
},
|
|
24971
|
+
"pageSize": {
|
|
24972
|
+
"type": "integer",
|
|
24973
|
+
"format": "int32",
|
|
24974
|
+
"description": "页长。\n最小值:1;\n最大值:500;",
|
|
24975
|
+
"example": 10
|
|
24976
|
+
}
|
|
24977
|
+
}
|
|
24978
|
+
}
|
|
24979
|
+
}
|
|
24980
|
+
},
|
|
24981
|
+
"required": true
|
|
24982
|
+
},
|
|
24983
|
+
"responses": {
|
|
24984
|
+
"200": {
|
|
24985
|
+
"description": "成功响应",
|
|
24986
|
+
"content": {
|
|
24987
|
+
"application/json": {
|
|
24988
|
+
"schema": {
|
|
24989
|
+
"type": "object",
|
|
24990
|
+
"properties": {
|
|
24991
|
+
"indexCode": {
|
|
24992
|
+
"type": "string",
|
|
24993
|
+
"description": "指数代码",
|
|
24994
|
+
"example": "000300"
|
|
24995
|
+
},
|
|
24996
|
+
"indexName": {
|
|
24997
|
+
"type": "string",
|
|
24998
|
+
"description": "指数的证券简称",
|
|
24999
|
+
"example": "沪深300"
|
|
25000
|
+
},
|
|
25001
|
+
"progFullName": {
|
|
25002
|
+
"type": "string",
|
|
25003
|
+
"description": "发布机构全称",
|
|
25004
|
+
"example": "中证指数有限公司"
|
|
25005
|
+
},
|
|
25006
|
+
"exchangeCd": {
|
|
25007
|
+
"type": "string",
|
|
25008
|
+
"description": "交易市场代码",
|
|
25009
|
+
"example": "S"
|
|
25010
|
+
},
|
|
25011
|
+
"date": {
|
|
25012
|
+
"type": "string",
|
|
25013
|
+
"description": "行情时间",
|
|
25014
|
+
"example": "2025-11-06 00:00:00"
|
|
25015
|
+
},
|
|
25016
|
+
"indexMarketValue": {
|
|
25017
|
+
"type": "number",
|
|
25018
|
+
"description": "指数的总市值",
|
|
25019
|
+
"example": 122081713834.268
|
|
25020
|
+
},
|
|
25021
|
+
"pe": {
|
|
25022
|
+
"type": "number",
|
|
25023
|
+
"description": "市盈率",
|
|
25024
|
+
"example": 14.3326
|
|
25025
|
+
},
|
|
25026
|
+
"pb": {
|
|
25027
|
+
"type": "number",
|
|
25028
|
+
"description": "市净率",
|
|
25029
|
+
"example": 1.376
|
|
25030
|
+
},
|
|
25031
|
+
"peRank5y": {
|
|
25032
|
+
"type": "number",
|
|
25033
|
+
"description": "近五年PE百分位",
|
|
25034
|
+
"example": 0.8399
|
|
25035
|
+
},
|
|
25036
|
+
"pbRank5y": {
|
|
25037
|
+
"type": "number",
|
|
25038
|
+
"description": "近五年PB百分位",
|
|
25039
|
+
"example": 0.6399
|
|
25040
|
+
},
|
|
25041
|
+
"turnoverRate": {
|
|
25042
|
+
"type": "number",
|
|
25043
|
+
"description": "换手率",
|
|
25044
|
+
"example": 0.0068
|
|
25045
|
+
},
|
|
25046
|
+
"divYield": {
|
|
25047
|
+
"type": "number",
|
|
25048
|
+
"description": "股息率",
|
|
25049
|
+
"example": 0.0269
|
|
25050
|
+
},
|
|
25051
|
+
"pageNum": {
|
|
25052
|
+
"type": "integer",
|
|
25053
|
+
"format": "int32",
|
|
25054
|
+
"description": "page number",
|
|
25055
|
+
"example": 1
|
|
25056
|
+
},
|
|
25057
|
+
"pageSize": {
|
|
25058
|
+
"type": "integer",
|
|
25059
|
+
"format": "int32",
|
|
25060
|
+
"description": "page size",
|
|
25061
|
+
"example": 100
|
|
25062
|
+
},
|
|
25063
|
+
"totalCount": {
|
|
25064
|
+
"type": "integer",
|
|
25065
|
+
"format": "int32",
|
|
25066
|
+
"description": "total count",
|
|
25067
|
+
"example": 0
|
|
25068
|
+
}
|
|
25069
|
+
}
|
|
25070
|
+
}
|
|
25071
|
+
}
|
|
25072
|
+
}
|
|
25073
|
+
},
|
|
25074
|
+
"400": {
|
|
25075
|
+
"description": "无效请求"
|
|
25076
|
+
},
|
|
25077
|
+
"500": {
|
|
25078
|
+
"description": "服务器内部错误"
|
|
25079
|
+
}
|
|
25080
|
+
},
|
|
25081
|
+
"security": [
|
|
25082
|
+
{
|
|
25083
|
+
"ApiKeyAuth": []
|
|
25084
|
+
}
|
|
25085
|
+
]
|
|
25086
|
+
},
|
|
24925
25087
|
"x-apikey-supported": [
|
|
24926
25088
|
"resource"
|
|
24927
25089
|
]
|
|
@@ -62165,11 +62327,6 @@
|
|
|
62165
62327
|
"description": "最新报告截止日期",
|
|
62166
62328
|
"example": "2026-06-30 00:00:00"
|
|
62167
62329
|
},
|
|
62168
|
-
"annualEndDate": {
|
|
62169
|
-
"type": "string",
|
|
62170
|
-
"description": "年报或半年报截止日期",
|
|
62171
|
-
"example": "2025-12-31 00:00:00"
|
|
62172
|
-
},
|
|
62173
62330
|
"conceptCode": {
|
|
62174
62331
|
"type": "string",
|
|
62175
62332
|
"description": "概念代码",
|
package/data/tree.json
CHANGED
|
@@ -3158,6 +3158,21 @@
|
|
|
3158
3158
|
"apiAccessLevel": "L2",
|
|
3159
3159
|
"apiVisibility": "external",
|
|
3160
3160
|
"apiMethod": "GET"
|
|
3161
|
+
},
|
|
3162
|
+
{
|
|
3163
|
+
"apiId": 110707,
|
|
3164
|
+
"apiName": "指数估值信息",
|
|
3165
|
+
"apiType": "SQL",
|
|
3166
|
+
"apiStatus": "release",
|
|
3167
|
+
"groupId": 1045,
|
|
3168
|
+
"remarks": null,
|
|
3169
|
+
"toolName": "get_index_valuation",
|
|
3170
|
+
"toolId": "get_index_valuation",
|
|
3171
|
+
"apiPath": "index/valuation",
|
|
3172
|
+
"enabled": 1,
|
|
3173
|
+
"apiAccessLevel": "L2",
|
|
3174
|
+
"apiVisibility": "external",
|
|
3175
|
+
"apiMethod": "POST"
|
|
3161
3176
|
}
|
|
3162
3177
|
]
|
|
3163
3178
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@investoday/investoday-api",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.51",
|
|
4
4
|
"description": "CLI for accessing InvestToday China market financial data via investoday-api.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/investoday-data/investoday-finance-data",
|