longbridge-watchlist

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-watchlist

longbridge-watchlist

Read-only listing of watchlist groups and member symbols. For mutations use
longbridge-watchlist-admin
.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Privacy: a watchlist reveals trading interest. Only return detailed lists in direct conversation.
提供自选股分组及组内标的的只读列表。如需执行修改操作,请使用
longbridge-watchlist-admin
响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
隐私说明:自选股会暴露交易偏好。仅在直接对话中返回详细列表。

When to use

使用场景

  • "我的自选股", "watchlist contents" → list everything
  • "我的「科技股」分组", "my Tech group" → list everything, then filter by group name
  • "分组 ID 12345 里有什么" → list everything, then filter by group id
The CLI returns all groups in one call; the LLM filters in-memory based on the user's intent.
  • "我的自选股", "watchlist contents" → 返回全部内容
  • "我的「科技股」分组", "my Tech group" → 返回全部内容,再按分组名称筛选
  • "分组 ID 12345 里有什么" → 返回全部内容,再按分组ID筛选
CLI会一次性返回所有分组;LLM会根据用户意图在内存中进行筛选。

Chained workflows (very common)

链式工作流(非常常见)

After getting symbols from this skill, route to other skills for the actual data:
User asksFlow
"我自选股的港股涨幅"this skill → filter
.HK
longbridge-quote
(batch)
"我自选最近一周走势"this skill → all symbols →
longbridge-kline
(loop)
"我自选的总市值"this skill → all symbols →
longbridge-quote
with
--include-static
Get symbols here, then route the data query to the appropriate skill. Do not try to compute change rates or charts inside this skill.
从本技能获取标的后,可路由至其他技能获取实际数据:
用户提问流程
"我自选股的港股涨幅"本技能 → 筛选
.HK
标的 →
longbridge-quote
(批量查询)
"我自选最近一周走势"本技能 → 获取全部标的 →
longbridge-kline
(循环查询)
"我自选的总市值"本技能 → 获取全部标的 → 带
--include-static
参数的
longbridge-quote
在此处获取标的,然后将数据查询路由至对应技能。请勿尝试在本技能内计算涨跌幅或生成图表。

CLI

CLI

bash
longbridge watchlist --format json
This lists every watchlist group plus the securities inside each group.
bash
longbridge watchlist --format json
该命令会列出所有自选股分组及各组内的证券标的。

Output

输出格式

Array of group objects, each with
{id, name, securities: [{symbol, name, ...}]}
. No matching filter (after LLM-side filtering) → empty array.
分组对象数组,每个对象结构为
{id, name, securities: [{symbol, name, ...}]}
。若LLM筛选后无匹配结果,则返回空数组。

Error handling

错误处理

If
longbridge
is missing, fall back to MCP. The watchlist read endpoint does not require trade scope, only login — if stderr says
not logged in
, tell the user to run
longbridge auth login
.
若未安装
longbridge
,则回退至MCP。自选股只读接口无需交易权限,仅需登录——若标准错误输出显示
not logged in
,请告知用户执行
longbridge auth login

MCP fallback

MCP回退方案

CLI behaviourMCP tool
List watchlist (with optional filter)
mcp__longbridge__watchlist
(returns all groups; LLM filters)
MCP-only extensions:
mcp__longbridge__sharelist_*
— community-shared watchlists (8 tools: list / detail / create / update / delete / member_add / member_remove / popular). For "hot lists", "what's trending", route to
sharelist_*
directly.
CLI行为MCP工具
列出自选股(可选筛选)
mcp__longbridge__watchlist
(返回所有分组;由LLM进行筛选)
仅MCP支持的扩展功能:
mcp__longbridge__sharelist_*
——社区共享自选股(包含8个工具:列表/详情/创建/更新/删除/添加成员/移除成员/热门列表)。对于*"热门榜单""什么股票在涨"*这类请求,请直接路由至
sharelist_*
工具。

Related skills

相关技能

  • Watchlist mutations →
    longbridge-watchlist-admin
  • Per-symbol quote / chart →
    longbridge-quote
    ,
    longbridge-kline
  • 自选股修改操作 →
    longbridge-watchlist-admin
  • 单标的报价/图表 →
    longbridge-quote
    longbridge-kline

File layout

文件结构

longbridge-watchlist/
└── SKILL.md          # prompt-only, no scripts/
longbridge-watchlist/
└── SKILL.md          # 仅含提示词,无scripts/目录