docs: add shareholders, screener, short-trades, rank, stock-events docs + CLI v0.22.0 release notes#1012
docs: add shareholders, screener, short-trades, rank, stock-events docs + CLI v0.22.0 release notes#1012hogan-yuan wants to merge 12 commits into
Conversation
…ndustry-rank, industry-peers, financial-report-snapshot Ported from longbridge-terminal PR #202. Documents 6 new SDK methods across zh-CN, zh-HK, and en: - business_segments — GET /v1/quote/fundamentals/business-segments - business_segments_history — GET /v1/quote/fundamentals/business-segments/history - institution_rating_views — GET /v1/quote/ratings/institutional - industry_rank — GET /v1/quote/industry/rank - industry_peers — GET /v1/quote/industries/peers - financial_report_snapshot — GET /v1/quote/financials/earnings-snapshot Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Heap was hitting ~10.27GB with 10240MB limit, causing OOM during CI build. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…urns percentage (e.g. 56.19) not decimal (e.g. 0.5619)
Document top-movers, rank, short-trades, screener (strategies/search/indicators), compare (valuation), and shareholder --top/--object-id added in the terminal CLI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This reverts commit 840c114.
- business_segments/history: date format YYYYMMDD (was YYYYQ#); regionals is [] - institution_rating_views: buy/over/hold/under/sell/total are strings not integers - industry_peers: next[].counter_id is empty string - financial_report_snapshot: ticker without market suffix, date format YYYY.MM.DD, yoy as percentage string, cmp_desc/est_value empty, ratio fields as percentages
…ocales Replace flat `field[].subfield` notation with `∟` nested format for simple structures; use separate `### TypeName` subsections with cross-references for complex/recursive types (IndustryPeers, FinancialReportSnapshot). Fix field types (array→object[], int64→integer), correct date formats (YYYYMMDD not quarter label), and update percent descriptions (percentage not 0–1 decimal). Covers zh-CN, zh-HK, and en for: business_segments, business_segments_history, institution_rating_views, industry_rank, industry_peers, financial_report_snapshot. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…v0.22.0 release notes Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
|
||
| ### [v0.22.0](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.22.0) | ||
|
|
||
| - **新增 `shareholder --top`** — 前20大股東(機構、個人、內部人)多報告期持股對比;`--object-id <id>` 查看單一股東持倉歷史及交易明細 |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| - **新增 `shareholder --top`** — 前20大股東(機構、個人、內部人)多報告期持股對比;`--object-id <id>` 查看單一股東持倉歷史及交易明細 | |
| - **新增 `shareholder --** — 前 20 大股東(機構、個人、內部人)多報告期持股對比;�;`--object-id <id>` 查看單一股東持倉歷史及交易明細 |
| - **擴展 `short-positions`** — 新增港股支持(`.HK` 自動路由至港交所沽空持倉數據) | ||
| - **新增 `short-trades`** — 每日沽空成交量(美股:FINRA/納斯達克;港股:港交所披露數據) | ||
| - **新增 `compare`** — 多股估值對比(PE/PB/PS/市值/收盤價),不傳對比股票時服務端自動選取同行業標的 | ||
| - **新增 `top-movers`** — 價格波動超近20日標準差的異動股票,附關聯新聞解讀;支持 `--market`、`--sort time|change|hot` 篩選 |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| - **新增 `top-movers`** — 價格波動超近20日標準差的異動股票,附關聯新聞解讀;支持 `--market`、`--sort time|change|hot` 篩選 | |
| - **新增 `top-mov** — 價格波動超近 20 日標準差的異動股票,附關聯新聞解讀;支持�持 `--market`、`--sort time|change|hot` 篩選 |
| "second_tags": [ | ||
| { "key": "ib_hot_all-us", "name": "美股總熱度", "market": "US" }, | ||
| { "key": "ib_hot_all-hk", "name": "港股總熱度", "market": "HK" }, | ||
| { "key": "ib_hot_all-cn", "name": "A股總熱度", "market": "CN" } |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| { "key": "ib_hot_all-cn", "name": "A股總熱度", "market": "CN" } | |
| { "key": "ib_hot_all-cn", "name": "A 股總熱度", "market": "CN" } |
| headingLevel: 2 | ||
| --- | ||
|
|
||
| 獲取價格波動超過近20個交易日標準差的異動股票,系統自動關聯相關新聞解讀異動原因。 |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 獲取價格波動超過近20個交易日標準差的異動股票,系統自動關聯相關新聞解讀異動原因。 | |
| 獲取價格波動超過近 20 個交易日標準差的異動股票,系統自動關聯相關新聞解讀異動原因。 |
| "alert_type": "earnings_beat", | ||
| "post": { | ||
| "id": "post_abc123", | ||
| "title": "阿里巴巴Q4財報解讀:雲業務強勁增長", |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| "title": "阿里巴巴Q4財報解讀:雲業務強勁增長", | |
| "title": "阿里巴巴 Q4 財報解讀:雲業務強勁增長", |
| - **扩展 `short-positions`** — 新增港股支持(`.HK` 自动路由至港交所沽空持仓数据) | ||
| - **新增 `short-trades`** — 每日沽空成交量(美股:FINRA/纳斯达克;港股:港交所披露数据) | ||
| - **新增 `compare`** — 多股估值对比(PE/PB/PS/市值/收盘价),不传对比股票时服务端自动选取同行业标的 | ||
| - **新增 `top-movers`** — 价格波动超近20日标准差的异动股票,附关联新闻解读;支持 `--market`、`--sort time|change|hot` 筛选 |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| - **新增 `top-movers`** — 价格波动超近20日标准差的异动股票,附关联新闻解读;支持 `--market`、`--sort time|change|hot` 筛选 | |
| - **新增 `top-mov** — 价格波动超近 20 日标准差的异动股票,附关联新闻解读;支持�持 `--market`、`--sort time|change|hot` 筛选 |
| "second_tags": [ | ||
| { "key": "ib_hot_all-us", "name": "美股总热度", "market": "US" }, | ||
| { "key": "ib_hot_all-hk", "name": "港股总热度", "market": "HK" }, | ||
| { "key": "ib_hot_all-cn", "name": "A股总热度", "market": "CN" } |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| { "key": "ib_hot_all-cn", "name": "A股总热度", "market": "CN" } | |
| { "key": "ib_hot_all-cn", "name": "A 股总热度", "market": "CN" } |
| headingLevel: 2 | ||
| --- | ||
|
|
||
| 获取价格波动超过近20个交易日标准差的异动股票,系统自动关联相关新闻解读异动原因。 |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 获取价格波动超过近20个交易日标准差的异动股票,系统自动关联相关新闻解读异动原因。 | |
| 获取价格波动超过近 20 个交易日标准差的异动股票,系统自动关联相关新闻解读异动原因。 |
| "alert_type": "earnings_beat", | ||
| "post": { | ||
| "id": "post_abc123", | ||
| "title": "阿里巴巴Q4财报解读:云业务强劲增长", |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| "title": "阿里巴巴Q4财报解读:云业务强劲增长", | |
| "title": "阿里巴巴 Q4 财报解读:云业务强劲增长", |
| headingLevel: 2 | ||
| --- | ||
|
|
||
| 获取上市公司前20大股东(机构、个人、内部人)的持股数据,支持多报告期对比。`object_id` 可传入 `shareholder_detail` 查看详情。 |
There was a problem hiding this comment.
🚫 [AutoCorrect Lint] <AutoCorrect> reported by reviewdog 🐶
| 获取上市公司前20大股东(机构、个人、内部人)的持股数据,支持多报告期对比。`object_id` 可传入 `shareholder_detail` 查看详情。 | |
| 获取上市公司前 20 大股东(机构、个人、内部人)的持股数据,支持多报告期对比。`object_id` 可传入 `shareholder_detail` 查看详情。 |
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
Superseded by #1013 — new branch cut from main |
Summary
Adds SDK documentation and CLI release notes for 13 new APIs from:
New SDK docs (3 locales each)
FundamentalContext:
shareholder_top,shareholder_detail,valuation_comparisonMarketContext:
stock_events,rank_categories,rank_listQuoteContext:
hk_short_positions,short_tradesNew ScreenerContext:
screener_recommend_strategies,screener_user_strategies,screener_strategy,screener_search,screener_indicatorsCLI v0.22.0 release notes
Added entries for:
shareholder --top/--object-id,short-trades,compare,top-movers,screener,rank.Related PRs
🤖 Generated with Claude Code