@investoday/investoday-api 1.9.63 → 1.9.64
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 +141 -0
- package/data/tree.json +15 -0
- package/package.json +1 -1
package/data/openapi.json
CHANGED
|
@@ -63869,6 +63869,147 @@
|
|
|
63869
63869
|
"x-apikey-supported": [
|
|
63870
63870
|
"resource"
|
|
63871
63871
|
]
|
|
63872
|
+
},
|
|
63873
|
+
"/fund/etf-premium-rates": {
|
|
63874
|
+
"post": {
|
|
63875
|
+
"tags": [
|
|
63876
|
+
"场内基金溢价率"
|
|
63877
|
+
],
|
|
63878
|
+
"summary": "场内基金溢价率",
|
|
63879
|
+
"description": "支持通过基金代码或代码列表及时间范围查询场内ETF的溢价率数据,返回包括基金代码、名称、日期、单位净值、收盘价及溢价率(百分比)等核心指标,帮助用户分析ETF的市场交易价格与净值偏离情况。",
|
|
63880
|
+
"operationId": "list_etf_premium_rates",
|
|
63881
|
+
"requestBody": {
|
|
63882
|
+
"description": "支持通过基金代码或代码列表及时间范围查询场内ETF的溢价率数据,返回包括基金代码、名称、日期、单位净值、收盘价及溢价率(百分比)等核心指标,帮助用户分析ETF的市场交易价格与净值偏离情况。",
|
|
63883
|
+
"content": {
|
|
63884
|
+
"application/json": {
|
|
63885
|
+
"schema": {
|
|
63886
|
+
"type": "object",
|
|
63887
|
+
"properties": {
|
|
63888
|
+
"fundCode": {
|
|
63889
|
+
"type": "string",
|
|
63890
|
+
"description": "基金代码【与fundCodes组成多选一参数,必须且只能传递其中一个】",
|
|
63891
|
+
"example": "000001"
|
|
63892
|
+
},
|
|
63893
|
+
"fundCodes": {
|
|
63894
|
+
"type": "array",
|
|
63895
|
+
"description": "基金代码列表【与fundCode组成多选一参数,必须且只能传递其中一个】",
|
|
63896
|
+
"example": [
|
|
63897
|
+
"000001",
|
|
63898
|
+
"000006"
|
|
63899
|
+
],
|
|
63900
|
+
"items": {
|
|
63901
|
+
"type": "string"
|
|
63902
|
+
}
|
|
63903
|
+
},
|
|
63904
|
+
"beginDate": {
|
|
63905
|
+
"type": "string",
|
|
63906
|
+
"description": "开始日期(格式yyyy-MM-dd)",
|
|
63907
|
+
"example": "2025-01-01"
|
|
63908
|
+
},
|
|
63909
|
+
"endDate": {
|
|
63910
|
+
"type": "string",
|
|
63911
|
+
"description": "结束日期(格式yyyy-MM-dd)",
|
|
63912
|
+
"example": "2025-01-01"
|
|
63913
|
+
},
|
|
63914
|
+
"pageNum": {
|
|
63915
|
+
"type": "integer",
|
|
63916
|
+
"format": "int32",
|
|
63917
|
+
"description": "页码。\n最小值:1;",
|
|
63918
|
+
"example": 1
|
|
63919
|
+
},
|
|
63920
|
+
"pageSize": {
|
|
63921
|
+
"type": "integer",
|
|
63922
|
+
"format": "int32",
|
|
63923
|
+
"description": "页长。\n最小值:1;\n最大值:500;",
|
|
63924
|
+
"example": 10
|
|
63925
|
+
}
|
|
63926
|
+
}
|
|
63927
|
+
}
|
|
63928
|
+
}
|
|
63929
|
+
},
|
|
63930
|
+
"required": true
|
|
63931
|
+
},
|
|
63932
|
+
"responses": {
|
|
63933
|
+
"200": {
|
|
63934
|
+
"description": "成功响应",
|
|
63935
|
+
"content": {
|
|
63936
|
+
"application/json": {
|
|
63937
|
+
"schema": {
|
|
63938
|
+
"type": "object",
|
|
63939
|
+
"properties": {
|
|
63940
|
+
"fundId": {
|
|
63941
|
+
"type": "string",
|
|
63942
|
+
"description": "今日投资内部编码",
|
|
63943
|
+
"example": "510300"
|
|
63944
|
+
},
|
|
63945
|
+
"fundCode": {
|
|
63946
|
+
"type": "string",
|
|
63947
|
+
"description": "基金代码"
|
|
63948
|
+
},
|
|
63949
|
+
"fundName": {
|
|
63950
|
+
"type": "string",
|
|
63951
|
+
"description": "基金名称,优先使用交易所扩展简称,无则使用中文简称",
|
|
63952
|
+
"example": "沪深300ETF"
|
|
63953
|
+
},
|
|
63954
|
+
"date": {
|
|
63955
|
+
"type": "string",
|
|
63956
|
+
"description": "截止日期",
|
|
63957
|
+
"example": "2026-09-30 00:00:00"
|
|
63958
|
+
},
|
|
63959
|
+
"unitNav": {
|
|
63960
|
+
"type": "number",
|
|
63961
|
+
"description": "单位净值",
|
|
63962
|
+
"example": 1.2345
|
|
63963
|
+
},
|
|
63964
|
+
"closePrice": {
|
|
63965
|
+
"type": "number",
|
|
63966
|
+
"description": "收盘价",
|
|
63967
|
+
"example": 1.238
|
|
63968
|
+
},
|
|
63969
|
+
"premiumRate": {
|
|
63970
|
+
"type": "number",
|
|
63971
|
+
"description": "溢价率,单位:%",
|
|
63972
|
+
"example": 0.2834
|
|
63973
|
+
},
|
|
63974
|
+
"pageNum": {
|
|
63975
|
+
"type": "integer",
|
|
63976
|
+
"format": "int32",
|
|
63977
|
+
"description": "page number",
|
|
63978
|
+
"example": 1
|
|
63979
|
+
},
|
|
63980
|
+
"pageSize": {
|
|
63981
|
+
"type": "integer",
|
|
63982
|
+
"format": "int32",
|
|
63983
|
+
"description": "page size",
|
|
63984
|
+
"example": 100
|
|
63985
|
+
},
|
|
63986
|
+
"totalCount": {
|
|
63987
|
+
"type": "integer",
|
|
63988
|
+
"format": "int32",
|
|
63989
|
+
"description": "total count",
|
|
63990
|
+
"example": 0
|
|
63991
|
+
}
|
|
63992
|
+
}
|
|
63993
|
+
}
|
|
63994
|
+
}
|
|
63995
|
+
}
|
|
63996
|
+
},
|
|
63997
|
+
"400": {
|
|
63998
|
+
"description": "无效请求"
|
|
63999
|
+
},
|
|
64000
|
+
"500": {
|
|
64001
|
+
"description": "服务器内部错误"
|
|
64002
|
+
}
|
|
64003
|
+
},
|
|
64004
|
+
"security": [
|
|
64005
|
+
{
|
|
64006
|
+
"ApiKeyAuth": []
|
|
64007
|
+
}
|
|
64008
|
+
]
|
|
64009
|
+
},
|
|
64010
|
+
"x-apikey-supported": [
|
|
64011
|
+
"resource"
|
|
64012
|
+
]
|
|
63872
64013
|
}
|
|
63873
64014
|
},
|
|
63874
64015
|
"components": {
|
package/data/tree.json
CHANGED
|
@@ -5834,6 +5834,21 @@
|
|
|
5834
5834
|
"apiAccessLevel": "L1",
|
|
5835
5835
|
"apiVisibility": "external",
|
|
5836
5836
|
"apiMethod": "POST"
|
|
5837
|
+
},
|
|
5838
|
+
{
|
|
5839
|
+
"apiId": 110710,
|
|
5840
|
+
"apiName": "场内基金溢价率",
|
|
5841
|
+
"apiType": "SQL",
|
|
5842
|
+
"apiStatus": "release",
|
|
5843
|
+
"groupId": 11132,
|
|
5844
|
+
"remarks": null,
|
|
5845
|
+
"toolName": "list_etf_premium_rates",
|
|
5846
|
+
"toolId": "list_etf_premium_rates",
|
|
5847
|
+
"apiPath": "fund/etf-premium-rates",
|
|
5848
|
+
"enabled": 1,
|
|
5849
|
+
"apiAccessLevel": "L1",
|
|
5850
|
+
"apiVisibility": "external",
|
|
5851
|
+
"apiMethod": "POST"
|
|
5837
5852
|
}
|
|
5838
5853
|
]
|
|
5839
5854
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@investoday/investoday-api",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.64",
|
|
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",
|