gangtise-openapi-cli 0.7.7 → 0.8.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 CHANGED
@@ -70,6 +70,7 @@ export GANGTISE_TOKEN="Bearer xxx"
70
70
  | | `peer-comparison` | 同业对比 |
71
71
  | | `earnings-review` / `earnings-review-check` | 业绩回顾 |
72
72
  | | `theme-tracking` | 主题跟踪 |
73
+ | | `hot-topic` | 热点话题 |
73
74
  | | `research-outline` | 研究提纲 |
74
75
  | **Vault** | `drive-list` / `drive-download` | 云盘文件列表与下载 |
75
76
  | **Raw** | `call` | 原始接口调用(可访问任意 endpoint) |
@@ -159,6 +160,7 @@ gangtise ai knowledge-batch --query 比亚迪 --query 最近热门概念
159
160
  - `insight announcement list`
160
161
  - `ai security-clue`
161
162
  - `vault drive-list`
163
+ - `ai hot-topic`
162
164
 
163
165
  规则:
164
166
  - **有时间范围时**(传了 `--start-time/--end-time` 或 `--start-date/--end-date`):**省略 `--size`**,CLI 自动翻页查全
@@ -241,6 +243,8 @@ gangtise fundamental cash-flow --security-code 600519.SH --fiscal-year 2025 --pe
241
243
  # 最新一期完整现金流量表
242
244
  gangtise fundamental cash-flow --security-code 600519.SH --format json
243
245
  gangtise fundamental main-business --security-code 600519.SH --breakdown region
246
+ # 多报告期:--period 可传多个值
247
+ gangtise fundamental main-business --security-code 600519.SH --breakdown product --period annual --period interim
244
248
  gangtise fundamental valuation-analysis --security-code 600519.SH --indicator peTtm
245
249
  ```
246
250
 
@@ -256,6 +260,9 @@ gangtise ai investment-logic --security-code 600519.SH
256
260
  gangtise ai peer-comparison --security-code 600519.SH
257
261
  gangtise ai earnings-review --security-code 600519.SH --period 2025q3
258
262
  gangtise ai theme-tracking --theme-id 121000131 --date 2026-03-01 --type morning
263
+ gangtise ai hot-topic --start-date 2026-03-22 --end-date 2026-03-27 --category morningBriefing --category noonBriefing --with-related-securities --with-close-reading
264
+ # 不传 --category 默认查全部类型(早报+午报+盘中快报+晚报),--with-related-securities 和 --with-close-reading 默认开启
265
+ gangtise ai hot-topic --start-date 2026-04-15 --end-date 2026-04-17
259
266
  gangtise ai research-outline --security-code 600519.SH
260
267
  gangtise ai knowledge-resource-download --resource-type 60 --source-id 3052524 --output ./resource.txt
261
268
  ```
package/dist/src/cli.js CHANGED
@@ -467,6 +467,19 @@ ai.command("research-outline").requiredOption("--security-code <code>").option("
467
467
  const client = await createClient();
468
468
  await printData(await client.call("ai.research-outline", { securityCode: options.securityCode }), parseFormat(options.format), options.output);
469
469
  });
470
+ ai.command("hot-topic").option("--from <number>", "Starting offset", "0").option("--size <number>", "Total rows to return; omit to fetch all").option("--start-date <date>", "Start date (yyyy-MM-dd)").option("--end-date <date>", "End date (yyyy-MM-dd)").option("--category <name>", "Report type: morningBriefing/noonBriefing/afternoonFlash/eveningBriefing", collectList, []).option("--with-related-securities", "Include related securities info", true).option("--with-close-reading", "Include close reading content", true).option("--format <format>", "Output format", "json").option("--output <path>").action(async (options) => {
471
+ const client = await createClient();
472
+ const ALL_CATEGORIES = ["morningBriefing", "noonBriefing", "afternoonFlash", "eveningBriefing"];
473
+ await printData(await client.call("ai.hot-topic", {
474
+ from: Number(options.from),
475
+ size: options.size === undefined ? undefined : Number(options.size),
476
+ startDate: options.startDate,
477
+ endDate: options.endDate,
478
+ categoryList: options.category.length > 0 ? options.category : ALL_CATEGORIES,
479
+ withRelatedSecurities: options.withRelatedSecurities || undefined,
480
+ withCloseReading: options.withCloseReading || undefined,
481
+ }), parseFormat(options.format), options.output);
482
+ });
470
483
  const vault = new Command("vault").description("Vault APIs");
471
484
  vault.command("drive-list").option("--from <number>", "Starting offset", "0").option("--size <number>", "Total rows to return; omit to fetch all").option("--start-time <datetime>").option("--end-time <datetime>").option("--keyword <text>").option("--file-type <number>", "File type", collectNumberList, []).option("--space-type <number>", "Space type", collectNumberList, []).option("--format <format>", "Output format", "table").option("--output <path>").action(async (options) => {
472
485
  const client = await createClient();
@@ -282,6 +282,14 @@ export const ENDPOINTS = {
282
282
  kind: "json",
283
283
  description: "Get company research outline",
284
284
  },
285
+ aiHotTopic: {
286
+ key: "ai.hot-topic",
287
+ method: "POST",
288
+ path: "/application/open-ai/hot-topic/getList",
289
+ kind: "json",
290
+ description: "List hot topic reports",
291
+ pagination: { enabled: true, maxPageSize: 20 },
292
+ },
285
293
  vaultDriveList: {
286
294
  key: "vault.drive.list",
287
295
  method: "POST",
@@ -1,2 +1,2 @@
1
1
  // Auto-generated — DO NOT EDIT
2
- export const CLI_VERSION = "0.7.7";
2
+ export const CLI_VERSION = "0.8.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gangtise-openapi-cli",
3
- "version": "0.7.7",
3
+ "version": "0.8.0",
4
4
  "description": "CLI for Gangtise OpenAPI",
5
5
  "license": "MIT",
6
6
  "repository": {