longbridge-subscriptions

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-subscriptions

longbridge-subscriptions

Diagnostic listing of the active real-time subscriptions in the current
longbridge
CLI session.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
default_install: false
— not installed by default. Manual symlink only.
列出当前
longbridge
CLI会话中的活跃实时订阅诊断信息。
响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
default_install: false
— 默认不安装。仅支持手动创建符号链接。

When to use

使用场景

  • "我现在订阅了哪些实时推送" → run
  • "为什么没收到 NVDA 实时报价" → diagnostic
  • "实时数据" (ambiguous) → ask back: subscriptions vs quotes vs watchlist?
  • "我现在订阅了哪些实时推送" → 运行此工具
  • "为什么没收到NVDA实时报价" → 用于诊断
  • "实时数据"(表述模糊)→ 反问:是订阅信息、报价还是关注列表?

CLI

CLI命令

bash
longbridge subscriptions --format json
Returns an array of
{symbol, sub_types: [...], candlestick_periods: [...]}
for every active subscription in this CLI session.
bash
longbridge subscriptions --format json
返回当前CLI会话中每个活跃订阅的数组,格式为
{symbol, sub_types: [...], candlestick_periods: [...]}

Local-only

仅本地可用

The Longbridge MCP service is stateless HTTP — it has no WebSocket session concept and no equivalent tool. This skill requires the local
longbridge
CLI (which holds the OAuth + WebSocket session).
If
longbridge
is not installed, tell the user this skill is local-only and they need to install longbridge-terminal.
Longbridge MCP服务是无状态HTTP服务——它没有WebSocket会话概念,也没有等效工具。此功能需要本地
longbridge
CLI(持有OAuth + WebSocket会话)。
如果未安装
longbridge
,请告知用户此功能仅本地可用,他们需要安装longbridge-terminal。

Error handling

错误处理

If
longbridge
is missing, surface the message — there is no MCP fallback. If stderr says
not logged in
, tell the user to run
longbridge auth login
.
如果缺少
longbridge
,提示相应信息——没有MCP备选方案。如果标准错误输出显示
not logged in
,请告知用户运行
longbridge auth login

File layout

文件结构

longbridge-subscriptions/
└── SKILL.md          # prompt-only, no scripts/
longbridge-subscriptions/
└── SKILL.md          # 仅提示文件,无scripts/目录