gangtise-openapi-cli 0.25.0 → 0.27.0
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/README.md +56 -40
- package/dist/src/cli.js +6 -4
- package/dist/src/core/args.js +17 -0
- package/dist/src/core/asyncContent.js +11 -2
- package/dist/src/core/client.js +50 -9
- package/dist/src/core/download.js +78 -13
- package/dist/src/core/endpoints.js +20 -0
- package/dist/src/core/errors.js +5 -2
- package/dist/src/core/indicatorMatrix.js +3 -1
- package/dist/src/core/output.js +58 -13
- package/dist/src/core/quoteSharding.js +9 -5
- package/dist/src/core/transport.js +31 -6
- package/dist/src/version.js +1 -1
- package/gangtise-openapi/SKILL.md +326 -0
- package/gangtise-openapi/references/commands/ai.md +149 -0
- package/gangtise-openapi/references/commands/alternative.md +102 -0
- package/gangtise-openapi/references/commands/fundamental.md +108 -0
- package/gangtise-openapi/references/commands/indicator.md +136 -0
- package/gangtise-openapi/references/commands/insight.md +187 -0
- package/gangtise-openapi/references/commands/quote.md +93 -0
- package/gangtise-openapi/references/commands/reference-and-lookup.md +229 -0
- package/gangtise-openapi/references/commands/vault.md +79 -0
- package/gangtise-openapi/references/examples.md +291 -0
- package/gangtise-openapi/references/fields.md +166 -0
- package/gangtise-openapi/references/lookup-ids.md +264 -0
- package/gangtise-openapi/references/response-schema.md +85 -0
- package/package.json +3 -2
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# 常用 ID 速查表
|
|
2
|
+
|
|
3
|
+
> 供 `gangtise-openapi` skill 按需引用,不需要在每次触发时全部加载。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 中信行业分类(--industry 参数)
|
|
8
|
+
|
|
9
|
+
完整列表用 `reference constant-list --category citicIndustry`。**`--industry` 全命令通用首选用这套(`1008001xx`)**——opinion / research / foreign-report / foreign-opinion / independent-opinion / wechat-message 都正确过滤;这套 ID 同时也是 `--research-area` 的行业部分(见下方研究方向)。
|
|
10
|
+
|
|
11
|
+
| ID | 行业 | ID | 行业 |
|
|
12
|
+
|----|------|----|------|
|
|
13
|
+
| 100800101 | 石油石化 | 100800102 | 煤炭 |
|
|
14
|
+
| 100800103 | 有色金属 | 100800104 | 电公 |
|
|
15
|
+
| 100800105 | 钢铁 | 100800106 | 基础化工 |
|
|
16
|
+
| 100800107 | 建筑 | 100800108 | 建材 |
|
|
17
|
+
| 100800109 | 轻工制造 | 100800110 | 机械 |
|
|
18
|
+
| 100800111 | 电新 | 100800112 | 国防军工 |
|
|
19
|
+
| 100800113 | 汽车 | 100800114 | 商贸零售 |
|
|
20
|
+
| 100800115 | 消服 | 100800116 | 家电 |
|
|
21
|
+
| 100800117 | 纺织服装 | 100800118 | 医药 |
|
|
22
|
+
| 100800119 | 食品饮料 | 100800120 | 农林牧渔 |
|
|
23
|
+
| 100800121 | 银行 | 100800122 | 非银 |
|
|
24
|
+
| 100800123 | 房地产 | 100800124 | 综合金融 |
|
|
25
|
+
| 100800125 | 交通运输 | 100800126 | 电子 |
|
|
26
|
+
| 100800127 | 通信 | 100800128 | 计算机 |
|
|
27
|
+
| 100800129 | 传媒 | 100800130 | 综合 |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 申万行业(--industry 参数)
|
|
32
|
+
|
|
33
|
+
完整列表用 `reference constant-list --category swIndustry`。⚠️ 申万码(`104xxx`)只在**部分** insight list 上作 `--industry` 等效、**不能用于 `--research-area`(返 0)**、`vault wechat-message-list` 会**静默返全量**——哪套码用于哪些命令的**权威口径见 `references/commands/reference-and-lookup.md`「行业 / 研究方向过滤——选哪套 category」**,勿在此重复枚举。拿不准就统一用上方中信码。
|
|
34
|
+
|
|
35
|
+
| ID | 行业 | ID | 行业 | ID | 行业 |
|
|
36
|
+
|----|------|----|------|----|------|
|
|
37
|
+
| 104110000 | 农林牧渔 | 104220000 | 基础化工 | 104230000 | 钢铁 |
|
|
38
|
+
| 104240000 | 有色金属 | 104270000 | 电子 | 104280000 | 汽车 |
|
|
39
|
+
| 104330000 | 家用电器 | 104340000 | 食品饮料 | 104350000 | 纺织服饰 |
|
|
40
|
+
| 104360000 | 轻工制造 | 104370000 | 医药生物 | 104410000 | 公用事业 |
|
|
41
|
+
| 104420000 | 交通运输 | 104430000 | 房地产 | 104450000 | 商贸零售 |
|
|
42
|
+
| 104460000 | 社会服务 | 104480000 | 银行 | 104490000 | 非银金融 |
|
|
43
|
+
| 104510000 | 综合 | 104610000 | 建筑材料 | 104620000 | 建筑装饰 |
|
|
44
|
+
| 104630000 | 电力设备 | 104640000 | 机械设备 | 104650000 | 国防军工 |
|
|
45
|
+
| 104710000 | 计算机 | 104720000 | 传媒 | 104730000 | 通信 |
|
|
46
|
+
| 104740000 | 煤炭 | 104750000 | 石油石化 | 104760000 | 环保 |
|
|
47
|
+
| 104770000 | 美容护理 | | | | |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 申万行业代码(--gts-code 参数,用于 ai security-clue)
|
|
52
|
+
|
|
53
|
+
完整列表用 `reference sector-search --keyword 申万一级行业指数`(取「指数数据板块」层级的 sectorId,即 `2000000014`)+ `reference sector-constituents --sector-id 2000000014`
|
|
54
|
+
|
|
55
|
+
| 代码 | 行业 | 代码 | 行业 | 代码 | 行业 |
|
|
56
|
+
|------|------|------|------|------|------|
|
|
57
|
+
| 821031.SWI | 农林牧渔 | 821032.SWI | 基础化工 | 821033.SWI | 钢铁 |
|
|
58
|
+
| 821034.SWI | 有色金属 | 821035.SWI | 电子 | 821036.SWI | 汽车 |
|
|
59
|
+
| 821037.SWI | 家用电器 | 821038.SWI | 食品饮料 | 821039.SWI | 纺织服饰 |
|
|
60
|
+
| 821040.SWI | 轻工制造 | 821041.SWI | 医药生物 | 821042.SWI | 公用事业 |
|
|
61
|
+
| 821043.SWI | 交通运输 | 821044.SWI | 房地产 | 821045.SWI | 商贸零售 |
|
|
62
|
+
| 821046.SWI | 社会服务 | 821047.SWI | 银行 | 821048.SWI | 非银金融 |
|
|
63
|
+
| 821049.SWI | 综合 | 821050.SWI | 建筑材料 | 821051.SWI | 建筑装饰 |
|
|
64
|
+
| 821052.SWI | 电力设备 | 821053.SWI | 机械设备 | 821054.SWI | 国防军工 |
|
|
65
|
+
| 821055.SWI | 计算机 | 821056.SWI | 传媒 | 821057.SWI | 通信 |
|
|
66
|
+
| 821058.SWI | 煤炭 | 821059.SWI | 石油石化 | 821060.SWI | 环保 |
|
|
67
|
+
| 821061.SWI | 美容护理 | | | | |
|
|
68
|
+
|
|
69
|
+
> 与「申万行业」ID 用途不同:行业 ID(如 `104270000`)用于 `--industry` 参数,行业代码(如 `821035.SWI`)用于投研线索 `--gts-code` 参数。
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 常用券商(--broker 参数)
|
|
74
|
+
|
|
75
|
+
完整列表用 `lookup broker-org list`
|
|
76
|
+
|
|
77
|
+
| ID | 券商 | ID | 券商 |
|
|
78
|
+
|----|------|----|------|
|
|
79
|
+
| C100000027 | 中信证券 | C100000095 | 中信建投 |
|
|
80
|
+
| C100000026 | 中金公司 | C100000047 | 国泰海通 |
|
|
81
|
+
| C100000021 | 广发证券 | C100000020 | 招商证券 |
|
|
82
|
+
| C100000023 | 国信证券 | C100000014 | 华泰证券 |
|
|
83
|
+
| C100000051 | 兴业证券 | C100000119 | 申万宏源 |
|
|
84
|
+
| C100000050 | 天风证券 | C100000039 | 长江证券 |
|
|
85
|
+
| C100000068 | 华创证券 | C100000042 | 东方证券 |
|
|
86
|
+
| C100000029 | 光大证券 | C100000006 | 国金证券 |
|
|
87
|
+
| C100000034 | 民生证券 | C100000062 | 中泰证券 |
|
|
88
|
+
| C100000099 | 中国银河 | C100000096 | 国投证券 |
|
|
89
|
+
| C100000075 | 浙商证券 | C100000085 | 财通证券 |
|
|
90
|
+
| C100000083 | 国盛证券 | C100000084 | 德邦证券 |
|
|
91
|
+
| C100000098 | 瑞银证券 | C100000092 | 高华证券 |
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
## 常用外资券商(--broker 参数)
|
|
96
|
+
|
|
97
|
+
| ID | 券商 | ID | 券商 |
|
|
98
|
+
|----|------|----|------|
|
|
99
|
+
| C800110443 | 高盛 | C800114009 | 摩根大通 |
|
|
100
|
+
| C800070012 | 德意志银行 | C800065266 | 巴克莱 |
|
|
101
|
+
| C800105979 | 汇丰控股 | C800090764 | 花旗银行 |
|
|
102
|
+
| C800127057 | 瑞银集团 | C800070011 | 大和证券 |
|
|
103
|
+
| C800033691 | 麦格理 | C800080335 | 高盛集团 |
|
|
104
|
+
| C800082057 | 高盛 | C800160866 | 中信里昂证券 |
|
|
105
|
+
| C800022831 | 里昂证券 | C800096075 | 海通国际 |
|
|
106
|
+
| C801303042 | 杰富瑞集团 | C800044779 | 加拿大皇家银行 |
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 常用研究方向(--research-area 参数)
|
|
111
|
+
|
|
112
|
+
`--research-area` 用 **gangtiseIndustry**:= 30 个行业(`1008001xx`,与上方「中信行业分类」表完全相同)+ 6 个方向。完整列表用 `reference constant-list --category gangtiseIndustry`。适用 opinion / summary / roadshow / site-visit / forum / my-conference(strategy 无此参数)。
|
|
113
|
+
|
|
114
|
+
**6 个研究方向(gangtiseIndustry 独有,citicIndustry 没有,已实测正确过滤):**
|
|
115
|
+
|
|
116
|
+
| ID | 方向 | ID | 方向 |
|
|
117
|
+
|----|------|----|------|
|
|
118
|
+
| 122000001 | 宏观 | 122000002 | 策略 |
|
|
119
|
+
| 122000003 | 固收 | 122000004 | 金工 |
|
|
120
|
+
| 122000005 | 海外 | 122000007 | 其他 |
|
|
121
|
+
|
|
122
|
+
30 个行业的 ID 直接用上方「中信行业分类」表(`1008001xx`)。⚠️ **申万码 `104xxx` 不能用于 `--research-area`**(除 summary / my-conference 的 spec 例外,其余返 0)。
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 常用会议机构(--institution 参数)
|
|
127
|
+
|
|
128
|
+
完整列表用 `lookup meeting-org list`
|
|
129
|
+
|
|
130
|
+
| ID | 机构 | ID | 机构 |
|
|
131
|
+
|----|------|----|------|
|
|
132
|
+
| C100000027 | 中信证券 | C100000095 | 中信建投 |
|
|
133
|
+
| C100000026 | 中金公司 | C100000047 | 国泰海通 |
|
|
134
|
+
| C100000021 | 广发证券 | C100000023 | 国信证券 |
|
|
135
|
+
| C100000014 | 华泰证券 | C100000051 | 兴业证券 |
|
|
136
|
+
| C100000050 | 天风证券 | C100000068 | 华创证券 |
|
|
137
|
+
| C100000020 | 招商证券 | C100000042 | 东方证券 |
|
|
138
|
+
| C000000000 | 公司自发 | C100000039 | 长江证券 |
|
|
139
|
+
| C100000075 | 浙商证券 | C100000083 | 国盛证券 |
|
|
140
|
+
| C100000084 | 德邦证券 | C100000085 | 财通证券 |
|
|
141
|
+
| C100000096 | 国投证券 | C100000099 | 银河证券 |
|
|
142
|
+
| C100000100 | 信达证券 | C100000034 | 民生证券 |
|
|
143
|
+
| C900005224 | 摩根大通 | C200000163 | 易方达基金 |
|
|
144
|
+
| C200000165 | 华夏基金 | C200000168 | 工银瑞信基金 |
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## 外资研报区域(--region 参数)
|
|
149
|
+
|
|
150
|
+
完整列表用 `reference constant-list --category regionCategory`
|
|
151
|
+
|
|
152
|
+
| ID | 区域 | ID | 区域 | ID | 区域 |
|
|
153
|
+
|----|------|----|------|----|------|
|
|
154
|
+
| cn | 中国 | cnHk | 香港 | cnTw | 台湾 |
|
|
155
|
+
| us | 美国 | jp | 日本 | sea | 东南亚 |
|
|
156
|
+
| gl | 全球 | uk | 英国 | fr | 法国 |
|
|
157
|
+
| de | 德国 | kr | 韩国 | in | 印度 |
|
|
158
|
+
| ca | 加拿大 | me | 中东 | othAs | 亚洲其他 |
|
|
159
|
+
| othEur | 欧洲其他 | latAm | 拉美 | oce | 大洋洲 |
|
|
160
|
+
| af | 非洲 | | | | |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## 公告分类
|
|
165
|
+
|
|
166
|
+
完整列表用 `reference constant-list --category aShareAnnouncementCategory`(港股用 `hkShareAnnouncementCategory`,美股用 `usShareAnnouncementCategory`,`103980xxx` 段),树形结构含一级和二级分类。
|
|
167
|
+
|
|
168
|
+
### 一级分类
|
|
169
|
+
|
|
170
|
+
| ID | 分类 | ID | 分类 |
|
|
171
|
+
|----|------|----|------|
|
|
172
|
+
| 103910100 | IPO | 103910200 | 财务报告 |
|
|
173
|
+
| 103910300 | 重大事项 | 103910400 | 交易提示 |
|
|
174
|
+
| 103910500 | 配股 | 103910600 | 增发 |
|
|
175
|
+
| 103910700 | 股权股本 | 103910800 | 一般公告 |
|
|
176
|
+
| 103910900 | 公司治理 | | |
|
|
177
|
+
|
|
178
|
+
### 二级分类(精确筛选用)
|
|
179
|
+
|
|
180
|
+
| 一级分类 | 二级 ID | 二级分类 |
|
|
181
|
+
|----------|---------|----------|
|
|
182
|
+
| IPO | 103910101 | 招股说明书(申报稿) |
|
|
183
|
+
| | 103910102 | 申报反馈 |
|
|
184
|
+
| | 103910103 | 招股说明书 |
|
|
185
|
+
| | 103910104 | 发行定价 |
|
|
186
|
+
| | 103910105 | 发行结果 |
|
|
187
|
+
| | 103910106 | 上市公告书 |
|
|
188
|
+
| | 103910108 | 其他首发公告 |
|
|
189
|
+
| 财务报告 | 103910201 | 业绩预告 |
|
|
190
|
+
| | 103910202 | 业绩快报 |
|
|
191
|
+
| | 103910203 | 一季度报告 |
|
|
192
|
+
| | 103910205 | 三季度报告 |
|
|
193
|
+
| | 103910207 | 半年度报告 |
|
|
194
|
+
| | 103910208 | 年度报告 |
|
|
195
|
+
| | 103910209 | 补充更正 |
|
|
196
|
+
| | 103910210 | 其他财务报告 |
|
|
197
|
+
| | 103910214 | 财报摘要 |
|
|
198
|
+
| 重大事项 | 103910301 | 董事会公告 |
|
|
199
|
+
| | 103910302 | 股东大会公告 |
|
|
200
|
+
| | 103910303 | 利润分配 |
|
|
201
|
+
| | 103910304 | 资产重组 |
|
|
202
|
+
| | 103910305 | 收购兼并 |
|
|
203
|
+
| | 103910306 | 关联交易 |
|
|
204
|
+
| | 103910307 | 借贷担保 |
|
|
205
|
+
| | 103910308 | 合同及协议 |
|
|
206
|
+
| | 103910309 | 人事变动 |
|
|
207
|
+
| | 103910310 | 资金投向 |
|
|
208
|
+
| | 103910311 | 违纪违规 |
|
|
209
|
+
| | 103910319 | 资金占用 |
|
|
210
|
+
| 交易提示 | 103910401 | 停复牌提示 |
|
|
211
|
+
| | 103910402 | 交易异动 |
|
|
212
|
+
| | 103910403 | 澄清致歉 |
|
|
213
|
+
| | 103910404 | 风险提示 |
|
|
214
|
+
| | 103910405 | 特别处理 |
|
|
215
|
+
| | 103910406 | 终止上市 |
|
|
216
|
+
| | 103910407 | 恢复上市 |
|
|
217
|
+
| | 103910408 | 暂停上市 |
|
|
218
|
+
| | 103910409 | 披露提示 |
|
|
219
|
+
| 配股 | 103910501 | 配股预案 |
|
|
220
|
+
| | 103910502 | 配股说明书 |
|
|
221
|
+
| | 103910503 | 配股获准 |
|
|
222
|
+
| | 103910504 | 配股发行 |
|
|
223
|
+
| | 103910505 | 配股上市 |
|
|
224
|
+
| | 103910506 | 配股结果 |
|
|
225
|
+
| | 103910507 | 其他配股公告 |
|
|
226
|
+
| 增发 | 103910601 | 增发预案 |
|
|
227
|
+
| | 103910602 | 增发说明书 |
|
|
228
|
+
| | 103910603 | 增发获准 |
|
|
229
|
+
| | 103910604 | 增发发行 |
|
|
230
|
+
| | 103910605 | 增发上市 |
|
|
231
|
+
| | 103910607 | 其他增发公告 |
|
|
232
|
+
| | 103910608 | 增发结果 |
|
|
233
|
+
| 股权股本 | 103910701 | 股权变动 |
|
|
234
|
+
| | 103910702 | 股本变动 |
|
|
235
|
+
| | 103910703 | 质押冻结 |
|
|
236
|
+
| | 103910704 | 质押式回购 |
|
|
237
|
+
| | 103910705 | 股权回购 |
|
|
238
|
+
| | 103910706 | 约定购回 |
|
|
239
|
+
| | 103910707 | 股权分置改革 |
|
|
240
|
+
| | 103910708 | 可转债 |
|
|
241
|
+
| 一般公告 | 103910801 | 投资理财 |
|
|
242
|
+
| | 103910802 | 员工持股 |
|
|
243
|
+
| | 103910803 | 股权激励 |
|
|
244
|
+
| | 103910804 | 政策影响 |
|
|
245
|
+
| | 103910805 | 权证公告 |
|
|
246
|
+
| | 103910806 | 中介公告 |
|
|
247
|
+
| | 103910807 | 法律纠纷 |
|
|
248
|
+
| | 103910808 | 融资融券 |
|
|
249
|
+
| | 103910809 | 投资者关系 |
|
|
250
|
+
| | 103910810 | 公司资料变更 |
|
|
251
|
+
| | 103910812 | 一般补充更正 |
|
|
252
|
+
| | 103910813 | 其他公告 |
|
|
253
|
+
| | 103910817 | 经营快报 |
|
|
254
|
+
| | 103910818 | 股份增减持 |
|
|
255
|
+
| | 103910819 | 公司制度文件 |
|
|
256
|
+
| | 103910820 | ESG报告 |
|
|
257
|
+
| | 103910822 | 监事会公告 |
|
|
258
|
+
| | 103910823 | 问询函及回复 |
|
|
259
|
+
| | 103910827 | 独立董事声明 |
|
|
260
|
+
| | 103910832 | 发明专利证书 |
|
|
261
|
+
| | 103910833 | 关联H股 |
|
|
262
|
+
| 公司治理 | 103910901 | 董监高工作报告 |
|
|
263
|
+
| | 103910902 | 内部控制与自查 |
|
|
264
|
+
| | 103910903 | 专项意见 |
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# 响应结构详细对照
|
|
2
|
+
|
|
3
|
+
CLI 自动处理 envelope:`{code, msg, data}` 信封会按 `code === "000000"` 解包,stdout 直接是 `data`。无 envelope 的响应原样透传。
|
|
4
|
+
|
|
5
|
+
> 例外:`indicator`(EDE)三个接口成功时**双层信封**(`data` 里再裹一层 `{code, status, data}`),内层字段名为 `securityCodeList/securityNameList/indicatorCodeList/indicatorNameList/dataTypes`,`values` 是 2D 矩阵(截面 `[指标][证券]`、时序 `[序列][日期]`);无数据为 `null` 单元格。`indicator` 子命令已在客户端二次解包并拍平成宽表;但直接 `raw call indicator.*` 只会剥外层,需自行处理内层。
|
|
6
|
+
|
|
7
|
+
## 通用模式(5 类)
|
|
8
|
+
|
|
9
|
+
| 模式 | 结构 | 提取方式 |
|
|
10
|
+
|------|------|---------|
|
|
11
|
+
| 列表 | `{list: [...], total: N}` | 遍历 `list[]`;`total` 决定是否还有更多 |
|
|
12
|
+
| 下载 | stdout = 文件路径字符串 | 直接读取整行 |
|
|
13
|
+
| AI 内容 | `{content: "markdown文本"}` | 直接呈现 `content` |
|
|
14
|
+
| 列式 K 线 | `{fieldList: [...], list: [[...], ...]}` 或 `{list: [{...}]}` | CLI 已规范化为对象 list |
|
|
15
|
+
| 异步任务 | 提交:`{dataId}`;轮询:`{status:"pending"}` 或 `{date, content}` | 详见 `commands/ai.md` |
|
|
16
|
+
|
|
17
|
+
## 全命令字段对照
|
|
18
|
+
|
|
19
|
+
| 命令 | data 结构 | 关键提取字段 |
|
|
20
|
+
|------|----------|------------|
|
|
21
|
+
| insight opinion list | `{list, total}` | `list[].id` / `list[].title` / `list[].publishDate` / `list[].chiefName` / `list[].securityCode` / `list[].institutionName` |
|
|
22
|
+
| insight summary list | `{list, total}` | `list[].summaryId` / `list[].title` / `list[].publishTime` |
|
|
23
|
+
| insight summary download | 文件路径(stdout) | — |
|
|
24
|
+
| insight roadshow / site-visit / strategy / forum list | `{list, total}` | `list[].id` / `list[].title` / `list[].publishTime` / `list[].institution.institutionName` |
|
|
25
|
+
| insight research list | `{list, total}` | `list[].reportId` / `list[].title` / `list[].brief`(全文摘要) / `list[].publishTime` / `list[].publisher.brokerName` / `list[].securityList[].rating` |
|
|
26
|
+
| insight research download | 文件路径(stdout) | — |
|
|
27
|
+
| insight foreign-report list | `{list, total}` | `list[].reportId` / `list[].title` / `list[].titleTranslate` / `list[].brief` / `list[].briefTranslate`(中译全文摘要) / `list[].publishTime` / `list[].publisher.brokerName` |
|
|
28
|
+
| insight foreign-report download | 文件路径(stdout) | — |
|
|
29
|
+
| insight announcement list | `{list, total}` | `list[].announcementId` / `list[].title` / `list[].publishTime` / `list[].securityCode` |
|
|
30
|
+
| insight announcement download | 文件路径(stdout) | — |
|
|
31
|
+
| insight announcement-hk list | `{list, total}` | `list[].announcementId` / `list[].title` / `list[].titleTranslate` / `list[].publishTime` / `list[].securityCode` / `list[].primaryCategory.categoryName` |
|
|
32
|
+
| insight announcement-hk download | 文件路径(stdout) | — |
|
|
33
|
+
| insight announcement-us list | `{list, total}` | `list[].announcementId` / `list[].title` / `list[].publishTime` / `list[].securityList[].securityCode` / `list[].primaryCategory.categoryName` / `list[].sourceName` |
|
|
34
|
+
| insight announcement-us download | 文件路径(stdout) | — |
|
|
35
|
+
| insight foreign-opinion list | `{list, total}` | `list[].foreignOpinionId` / `list[].titleTranslate` / `list[].publishTime` / `list[].publisher.brokerName` / `list[].securityList[].rating` |
|
|
36
|
+
| insight independent-opinion list | `{list, total}` | `list[].independentOpinionId` / `list[].titleTranslate` / `list[].briefTranslate` / `list[].publishTime` / `list[].analyst.analystName` |
|
|
37
|
+
| insight independent-opinion download | 文件路径(stdout) | — |
|
|
38
|
+
| insight official-account list | `{list, total}` | `list[].articleId` / `list[].accountName` / `list[].title` / `list[].publishTime` / `list[].articleCategory` / `list[].summary` / `list[].industryList[].industryName` / `list[].conceptList[].conceptName` / `list[].securityList[].securityCode` |
|
|
39
|
+
| insight official-account download | 文件路径(stdout) | — |
|
|
40
|
+
| insight qa list | `{list, total}` | `list[].source`(conference/interactive/survey)/ `list[].publishTime` / `list[].question` / `list[].answer` / `list[].member` / `list[].securityCode` / `list[].questionCategory[]` / `list[].answerImportant`(1/0) |
|
|
41
|
+
| insight report-image list | `[{...}]`(扁平数组,无 `total`) | `[].chunkId`(下载用 `--chunk-id`)/ `[].title` / `[].sourceId` / `[].broker` / `[].category` / `[].page` / `[].totalPages` / `[].imageCaption[]` / `[].imageFootnote[]` / `[].pageContent`(该页 OCR/描述) |
|
|
42
|
+
| insight report-image download | 文件路径(stdout,JPEG) | — |
|
|
43
|
+
| reference securities-search | `{returnedCount, list}` | `list[].gtsCode` / `list[].gtsName` / `list[].category` / `list[].matchScore` / `list[].matchType` |
|
|
44
|
+
| reference chiefs-search | `{returnedCount, list}` | `list[].chiefId` / `list[].chiefName` / `list[].institution` / `list[].team` / `list[].matchScore` |
|
|
45
|
+
| reference institution-search | `{returnedCount, list}` | `list[].institutionId` / `list[].institutionName` / `list[].category` / `list[].usageScopes[{apiName, paramName}]` / `list[].matchScore` |
|
|
46
|
+
| reference official-account-search | `{returnedCount, list}` | `list[].accountId`(喂 `insight official-account list --account-id`)/ `list[].accountName` / `list[].category`(四类或 `null`)/ `list[].matchScore` |
|
|
47
|
+
| reference constant-category | `{total, list}` | `list[].category` / `list[].categoryName` / `list[].structureType`(flat/tree) / `list[].maxLevel` / `list[].usageScopes[].apiName` / `.paramName` |
|
|
48
|
+
| reference constant-list | `{category, structureType, maxLevel, constantCount, list}`(CLI 把 `constants` 规范化为 `list`) | `list[].constantId` / `list[].constantName` / `list[].level`;树形分类父节点含 `list[].children[]`(递归同构) |
|
|
49
|
+
| reference concept-search | `{returnedCount, list}` | `list[].conceptId` / `list[].conceptName` / `list[].matchScore` |
|
|
50
|
+
| reference sector-search | `{returnedCount, list}` | `list[].sectorId` / `list[].sectorName` / `list[].hierarchy`(层级路径) / `list[].matchScore` |
|
|
51
|
+
| reference sector-constituents | `{total, list}` | `list[].gtsCode` / `list[].gtsName`;total=0 说明 sectorId 不对(先 sector-search 确认) |
|
|
52
|
+
| quote day-kline / day-kline-hk / day-kline-us / index-day-kline | `{fieldList, list}` 或规范化后 `{list: [{...}]}` | `tradeDate` / `securityCode` / `open` / `close` / `pctChange` / `volume`;index 另含 `securityName`(指数名称,v0.15.0 起) |
|
|
53
|
+
| quote minute-kline | `{list: [{...}]}` | `tradeTime` / `open` / `close` / `volume` |
|
|
54
|
+
| quote realtime | `{fieldList, list, total}` 或规范化后 `{list: [{...}]}` | `securityCode` / `exchange` / `tradeDate` / `tradeTime` / `latestPrice` / `pctChange` / `volume` / `amount` / `amplitude` |
|
|
55
|
+
| quote fund-flow | `{fieldList, list, total}` 列式 → 规范化后 `{list: [{...}], total}` 宽表 | `securityCode` / `tradeDate` + 请求的字段(`mainNetInflow` / `largeInflow` / `xlargeOutflow` / …) |
|
|
56
|
+
| fundamental income-statement / balance-sheet / cash-flow(含 quarterly / -hk / -us) | `{total, list: [{...}]}` | `fiscalYear` / `period` / `endDate` / `companyName` / `companyType`(企业类型名称,如 `一般企业`/`银行`)+ 各 `--field` 字段;港股/美股另含 `timeCovered`(不规则跨度) |
|
|
57
|
+
| fundamental main-business | `{list: [{...}]}` | `endDate` / `breakdownName` / `revenue` / `revenueRatio` / `grossProfitRatio` |
|
|
58
|
+
| fundamental valuation-analysis | `{list: [{...}]}` | `tradeDate` / `value` / `percentileRank` |
|
|
59
|
+
| fundamental earning-forecast | `{securityCode, securityName, updateList: [...]}` | `updateList[].date` / `updateList[].fieldList[].forecastYear` + 各 consensus 指标 |
|
|
60
|
+
| fundamental top-holders | `{holderType, list: [{...}]}` | `reportPeriod` / `rank` / `shareholderName` / `holdingNum` / `holdingPct` / `chgNum` / `chgPct` |
|
|
61
|
+
| ai knowledge-batch | `{list: [{...}]}` | `list[].resourceType` / `list[].sourceId` / `list[].title` / `list[].summary` |
|
|
62
|
+
| ai security-clue | `{list, total}` | `list[].securityCode` / `list[].title` / `list[].clueType` / `list[].clueDate` |
|
|
63
|
+
| ai stock-summary | `{list, total}` | `list[].securityCode` / `list[].securityName` / `list[].summary` / `list[].date`;无看点的证券不在 list 中 |
|
|
64
|
+
| ai one-pager / investment-logic / peer-comparison / research-outline | `{content}` | `content` 直接呈现(Markdown) |
|
|
65
|
+
| ai theme-tracking | `[{type, date, content}, ...]`(列表,每元素一份报告) | 遍历筛选 `type === "morning" / "night"`;某主题在该日期可能只有一种类型,或两种都没(空列表) |
|
|
66
|
+
| ai hot-topic | `{list, total}` | `list[].title` / `list[].reportDate` / `list[].category` / `list[].topics[].topicTitle` / `list[].topics[].driverEvent` / `list[].topics[].investLogic` |
|
|
67
|
+
| ai management-discuss-* | `{securityCode, reportDate, discussionDimension, content}` | `content` 为字符串(业绩会)或字符串数组(财报) |
|
|
68
|
+
| ai earnings-review | `{dataId}`(提交)/ `{status:"pending"}` 或 `{date, content}`(check) | `dataId` 用于轮询;最终 `content` 直接呈现 |
|
|
69
|
+
| ai viewpoint-debate | 同 earnings-review | — |
|
|
70
|
+
| vault drive-list | `{list, total}` | `list[].fileId`(下载用 `--file-id`)/ `list[].title` / `list[].fileType` / `list[].uploadTime` |
|
|
71
|
+
| vault drive-download | 文件路径(stdout) | — |
|
|
72
|
+
| vault record-list | `{list, total}` | `list[].recordId` / `list[].title` / `list[].category` / `list[].createTime` / `list[].recordDuration` |
|
|
73
|
+
| vault record-download | 文件路径(stdout) | — |
|
|
74
|
+
| vault my-conference-list | `{list, total}` | `list[].conferenceId` / `list[].title` / `list[].category` / `list[].institution.institutionName` / `list[].publishTime` |
|
|
75
|
+
| vault my-conference-download | 文件路径(stdout) | — |
|
|
76
|
+
| vault wechat-message-list | `{list, total}` | `list[].msgId` / `list[].msgContent` / `list[].msgTime` / `list[].wechatGroupName` / `list[].speakerName` / `list[].category` / `list[].tagList` |
|
|
77
|
+
| vault wechat-chatroom-list | `{list, total}` | `list[].chatroomName` / `list[].chatroomId` |
|
|
78
|
+
| alternative edb-search | `{list: [...]}` 指标列表 | `indicatorId` / `indicatorName` / `dataSource` / `frequency` / `unit` |
|
|
79
|
+
| alternative edb-data | 列表,每行 `{date, <indicatorId>: value, ...}` 宽表 | `date` + 每个 `--indicator-id` 一列(该日指标值) |
|
|
80
|
+
| alternative concept-info | `{conceptId, conceptName, ...}`(单对象,**非列表**) | `conceptName` / `definition` / `investmentLogic` / `industrySpace` / `competitiveLandscape` / `keyEvents[].date` / `keyEvents[].content`;文本字段未配置为 `null` |
|
|
81
|
+
| alternative concept-securities | `{conceptId, conceptName, securityCount, securityDetail}`(单对象,分组) | `securityCount` / `securityDetail[].groupName` / `securityDetail[].securityList[].securityCode` / `.securityName` / `.isKey` / `.inclusionReason`;无成分股时 `securityDetail` 为 `null` |
|
|
82
|
+
| indicator search | `[{indicatorCode, indicatorName, ...}]`(列表) | `indicatorCode` / `indicatorName` / `description` / `scope` / `parameterList[].paramKey` / `.enumList[].value`(专属参数及枚举) / `score` |
|
|
83
|
+
| indicator cross-section | CLI 拍平为宽表 `{list, total}` | `list[].date` / `list[].security` / `list[].name` + 每个指标名一列;**单日多指标 × 多证券**,每行一只证券 |
|
|
84
|
+
| indicator time-series | CLI 拍平为宽表 `{list, total}` | `list[].date` + 序列列:单证券时列=各指标、多证券时列=各证券;每行一个日期 |
|
|
85
|
+
| lookup broker-org / meeting-org list | `[...]` | `[].id` / `[].name` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gangtise-openapi-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "CLI for Gangtise OpenAPI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist/",
|
|
23
|
+
"gangtise-openapi/",
|
|
23
24
|
"README.md"
|
|
24
25
|
],
|
|
25
26
|
"scripts": {
|
|
@@ -27,7 +28,7 @@
|
|
|
27
28
|
"build": "tsc -p tsconfig.json",
|
|
28
29
|
"dev": "tsx src/cli.ts",
|
|
29
30
|
"test": "vitest run",
|
|
30
|
-
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
31
|
+
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json",
|
|
31
32
|
"prepare": "node scripts/prepare.cjs && npm run build"
|
|
32
33
|
},
|
|
33
34
|
"engines": {
|