longbridge-sector-screener
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-sector-screener
longbridge-sector-screener
Sector screening and ranking — filter and rank industry sectors across A-share / HK / US markets by valuation (PE/PB), capital inflow, price performance (1d/5d/20d), and turnover rate. Outputs a ranked sector leaderboard.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
板块筛选与排行——按估值(PE/PB)、资金流入、价格表现(1日/5日/20日)及换手率对A股/港股/美股市场的行业板块进行筛选和排名,输出排名后的板块排行榜。
响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
When to use
使用场景
Trigger when the user asks about:
- Top or bottom performing sectors — "今天哪个行业涨得最多", "最强势板块", "best performing sectors today"
- Sector capital flow ranking — "哪些板块在吸资金", "sectors with net capital inflow"
- Sector valuation screening — "哪些行业PE最低", "low-PE sectors"
- Broad sector overview — "美股各行业今天表现", "A股行业板块排名"
For individual stock anomalies, prefer . For a single stock's capital flow, prefer . For index constituents, prefer .
longbridge-anomalylongbridge-capital-flowlongbridge-constituent当用户询问以下内容时触发:
- 表现最优或最差的板块——"今天哪个行业涨得最多", "最强势板块", "best performing sectors today"
- 板块资金流排名——"哪些板块在吸资金", "sectors with net capital inflow"
- 板块估值筛选——"哪些行业PE最低", "low-PE sectors"
- 板块整体概览——"美股各行业今天表现", "A股行业板块排名"
若用户询问个股异常情况,优先使用;若询问单只股票的资金流,优先使用;若询问指数成分股,优先使用。
longbridge-anomalylongbridge-capital-flowlongbridge-constituentWorkflow
工作流程
- Identify the target market (A-share / HK / US) from the prompt.
- Select representative sector ETFs or indices for that market:
- A-share: major CSI sector indices (e.g. CSI Banks, CSI Tech, CSI Consumer)
- HK: Hang Seng sector sub-indices or sector ETFs
- US: SPDR sector ETFs (XLK, XLF, XLE, XLV, XLI, XLY, XLP, XLU, XLRE, XLB, XLC)
- Run on each sector proxy to get 1d / 5d / 20d performance and turnover rate.
longbridge quote - Run on each sector proxy for net capital inflow.
longbridge capital - Run for PE and PB of each sector proxy.
longbridge calc-index - Sort and rank by the user's requested criterion; present as a leaderboard table.
- 从用户提问中识别目标市场(A股/港股/美股)。
- 为该市场选择具有代表性的板块ETF或指数:
- A股:主要CSI行业指数(如CSI银行指数、CSI科技指数、CSI消费指数)
- 港股:恒生行业分类指数或板块ETF
- 美股:SPDR板块ETF(XLK, XLF, XLE, XLV, XLI, XLY, XLP, XLU, XLRE, XLB, XLC)
- 对每个板块代理标的运行,获取1日/5日/20日表现及换手率。
longbridge quote - 对每个板块代理标的运行,获取资金净流入数据。
longbridge capital - 对每个板块代理标的运行,获取PE和PB数据。
longbridge calc-index - 根据用户要求的标准进行排序和排名,以排行榜表格形式呈现。
CLI
命令行界面(CLI)
bash
undefinedbash
undefinedSector proxy quote (price change, turnover rate)
板块代理标的行情(涨跌幅、换手率)
longbridge quote <SECTOR_SYMBOL> --format json
longbridge quote <SECTOR_SYMBOL> --format json
Sector capital flow
板块资金流
longbridge capital <SECTOR_SYMBOL> --format json
longbridge capital <SECTOR_SYMBOL> --format json
Sector valuation
板块估值
longbridge calc-index <SECTOR_SYMBOL> --index pe_ttm,pb --format json
longbridge calc-index <SECTOR_SYMBOL> --index pe_ttm,pb --format json
Constituent list of a sector index (if drilling into members)
板块指数的成分股列表(若需深入查看成分股)
longbridge constituent <INDEX> --format json
> Run `longbridge quote --help`, `longbridge capital --help`, and `longbridge calc-index --help` to verify flags.longbridge constituent <INDEX> --format json
> 运行`longbridge quote --help`、`longbridge capital --help`和`longbridge calc-index --help`查看参数说明。Output
输出
A ranked leaderboard table:
| Rank | Sector | 简体 | 繁體 | English |
|---|---|---|---|---|
| 1d change | 今日涨跌幅 | 今日漲跌幅 | 1d change | |
| 5d change | 近5日涨跌幅 | 近5日漲跌幅 | 5d change | |
| Net capital inflow | 净流入 | 淨流入 | Net inflow | |
| PE | 市盈率 | 市盈率 | PE | |
| PB | 市净率 | 市淨率 | PB | |
| Turnover rate | 换手率 | 換手率 | Turnover rate |
Note: Sector coverage depends on available representative ETFs/indices in Longbridge. Full market-wide sector screening (like Wind or 同花顺) is not supported — the LLM must manually iterate over a curated set of sector proxies.
排名后的板块排行榜表格:
| 排名 | 板块 | 简体 | 繁体 | English |
|---|---|---|---|---|
| 1d change | 今日涨跌幅 | 今日漲跌幅 | 1d change | |
| 5d change | 近5日涨跌幅 | 近5日漲跌幅 | 5d change | |
| 资金净流入 | 净流入 | 淨流入 | Net inflow | |
| PE | 市盈率 | 市盈率 | PE | |
| PB | 市净率 | 市淨率 | PB | |
| 换手率 | 换手率 | 換手率 | Turnover rate |
注意:板块覆盖范围取决于Longbridge中可用的代表性ETF/指数。暂不支持全市场范围的板块筛选(如Wind或同花顺)——大语言模型需手动遍历一组精选的板块代理标的。
Error handling
错误处理
| Situation | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 请先安装 longbridge-terminal | 請先安裝 longbridge-terminal | Install longbridge-terminal first |
| 请运行 | 請執行 | Run |
| Sector proxy not found | 提示该板块代理标的无数据 | 提示該板塊代理標的無數據 | Sector proxy symbol not found |
| Other stderr | 原样展示,不重试 | 原樣展示,不重試 | Surface verbatim, do not retry |
| 场景 | 简体回复 | 繁體回覆 | English reply |
|---|---|---|---|
| 请先安装 longbridge-terminal | 請先安裝 longbridge-terminal | Install longbridge-terminal first |
| 请运行 | 請執行 | Run |
| 板块代理标的未找到 | 提示该板块代理标的无数据 | 提示該板塊代理標的無數據 | Sector proxy symbol not found |
| 其他标准错误输出 | 原样展示,不重试 | 原樣展示,不重試 | Surface verbatim, do not retry |
MCP fallback
MCP备选方案
If CLI is unavailable: , , and .
mcp__longbridge__quotemcp__longbridge__capital_flowmcp__longbridge__calc_indexes若CLI不可用:、和。
mcp__longbridge__quotemcp__longbridge__capital_flowmcp__longbridge__calc_indexesRelated skills
相关技能
| User asks | Route to |
|---|---|
| Individual stock anomalies | |
| Single stock capital flow | |
| Index constituents | |
| Market temperature / overall sentiment | |
| Multi-stock comparison | |
| 用户提问内容 | 跳转至 |
|---|---|
| 个股异常情况 | |
| 单只股票资金流 | |
| 指数成分股 | |
| 市场热度/整体情绪 | |
| 多股对比 | |
File layout
文件结构
longbridge-sector-screener/
└── SKILL.mdPrompt-only — no . Sector proxies are selected in-context based on market and user request. Discover current CLI flags via .
scripts/longbridge <subcommand> --helplongbridge-sector-screener/
└── SKILL.md仅需提示词——无目录。板块代理标的根据市场和用户需求在上下文选择。通过查看当前CLI参数。
scripts/longbridge <subcommand> --help