diff --git a/docs/.vitepress/theme/components/McpTools.vue b/docs/.vitepress/theme/components/McpTools.vue index 02c6ebb4..0b74b1ea 100644 --- a/docs/.vitepress/theme/components/McpTools.vue +++ b/docs/.vitepress/theme/components/McpTools.vue @@ -162,9 +162,12 @@ function getParams(schema?: ToolSchema): ParamRow[] {
+ +
@@ -429,4 +433,23 @@ function getParams(schema?: ToolSchema): ParamRow[] { font-size: 0.75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; } + +.mcp-screener-note { + margin: 0.75rem 0 0.5rem; + padding: 0.5rem 0.75rem; + font-size: 0.8rem; + color: var(--vp-c-text-2); + background: var(--vp-c-bg-soft); + border-left: 3px solid var(--vp-c-brand-1); + border-radius: 0 4px 4px 0; +} + +.mcp-screener-note a { + color: var(--vp-c-brand-1); + text-decoration: none; +} + +.mcp-screener-note a:hover { + text-decoration: underline; +} diff --git a/docs/.vitepress/theme/components/Skill.vue b/docs/.vitepress/theme/components/Skill.vue index 9606af52..a2571e27 100644 --- a/docs/.vitepress/theme/components/Skill.vue +++ b/docs/.vitepress/theme/components/Skill.vue @@ -8,7 +8,6 @@ import { augmentLocale } from './skill-catalog/augment' import { locale as _enLocale } from './skill-catalog/en' import { locale as _zhCNLocale } from './skill-catalog/zh-CN' import { locale as _zhHKLocale } from './skill-catalog/zh-HK' -import { siteHostname } from '../utils/region' const enLocale = augmentLocale(_enLocale) const zhCNLocale = augmentLocale(_zhCNLocale) const zhHKLocale = augmentLocale(_zhHKLocale) @@ -21,16 +20,7 @@ const LOCALE = { eyebrow: 'AI · Skill', title1: 'Longbridge Skill', title2: 'Unlock market insights, deep research and intelligent trading for your AI.', - desc: 'With Longbridge Skill, your AI assistant — Claude, Cursor, ChatGPT, Gemini, Codex — can screen stocks, decode earnings, track insider moves, and place orders, all in plain conversation.', - tabConnect: 'Connect AI', - tabPrompt: 'Copy command', - connectLabel: 'Authorization happens upfront — grab a code on the Connect page, hand it to your AI, and it takes care of the rest:', - connectSteps: [ - 'Sign in on the Connect page to get a one-time auth code', - 'Send the authorization snippet to your AI assistant', - 'Your AI redeems the code and plugs into Longbridge — no browser hops along the way', - ], - connectCta: 'Connect AI', + desc: 'With Longbridge Skill, your AI assistant — Claude, Cursor, ChatGPT, Gemini, Codex — can screen stocks, decode earnings, track insider moves, and place orders, all in plain conversation.', installLabel: 'Copy and send to any AI — it will walk you through install:', installLink: 'View installation guide for each client', agentsLabel: 'Supported AI tools', @@ -44,7 +34,7 @@ const LOCALE = { catalog: { eyebrow: 'Skill catalog', badge: 'SKILL CATALOG', - title: 'Skills that cover every move in your trading day.', + title: '100+ Skills, covering every move in your trading day.', desc: 'Each Skill is a packaged set of tools, callable by any supported AI client. Click any card to see install instructions and details.', marketplace: 'Available on Claude Code Plugin Marketplace', pluginDesc: 'Copy the commands and run them in Claude Code.', @@ -87,7 +77,7 @@ const LOCALE = { cases: { eyebrow: 'SEE IT IN ACTION', title: 'Real user cases, real returns.', - desc: 'Hand-picked write-ups from the Longbridge community. From quick experiments to fully-deployed quant systems — see what people are shipping with Skill.', + desc: 'Hand-picked write-ups from the Longbridge community. From quick experiments to fully-deployed quant systems — see what people are shipping with Skill.', read: 'Read case', award: { tag: 'AWARD', @@ -103,7 +93,7 @@ const LOCALE = { recommended: 'Recommended', card1: { title: 'Copy and send to any AI', - desc: 'Paste this message into any AI assistant (Claude, ChatGPT, Cursor) and it will guide you through the installation.', + desc: 'Paste this message into any AI assistant (Claude, ChatGPT, Cursor) and it will guide you through the installation.
Don\'t have a Longbridge account yet? Sign up first.', }, card2: { title: 'Download Skill ZIP', @@ -114,7 +104,7 @@ const LOCALE = { title: 'Install via Npx', desc: 'For Claude Code, Codex, and similar tools — installs all skills globally.', }, - installCmd: `Install Longbridge AI toolkit following the guide:\n${siteHostname}/skill/install.md\n\And complete login and test with a market data query.`, + installCmd: `Install Longbridge AI toolkit following the guide:\nhttps://open.longbridge.com/skill/install.md\n\And complete login and test with a market data query.`, footer: { also: 'Also available on', and: 'and', @@ -127,16 +117,7 @@ const LOCALE = { eyebrow: 'AI · Skill', title1: 'Longbridge Skill', title2: '为您的 AI 解锁市场洞察、深度研究与智能交易', - desc: '借助 Longbridge Skill,您的 AI 助手——Claude、Cursor、ChatGPT、Gemini、Codex——可以筛选股票、解读财报、追踪机构动向,并直接下单,全程自然对话。', - tabConnect: 'Connect AI', - tabPrompt: '复制命令', - connectLabel: '授权一步前置——在 Connect 页面拿到授权码,交给 AI,剩下的它来完成:', - connectSteps: [ - '登录 Connect 页面,获取一次性授权码', - '将授权指令发送给您的 AI 助手', - 'AI 自动兑换授权码并接入 Longbridge,全程无需跳转浏览器', - ], - connectCta: 'Connect AI', + desc: '借助 Longbridge Skill,您的 AI 助手——Claude、Cursor、ChatGPT、Gemini、Codex——可以筛选股票、解读财报、追踪机构动向,并直接下单,全程自然对话。', installLabel: '复制发送给任意 AI——它将引导您完成安装:', installLink: '查看各客户端安装指南', agentsLabel: '支持的 AI 工具', @@ -150,7 +131,7 @@ const LOCALE = { catalog: { eyebrow: 'Skill 目录', badge: 'SKILL 目录', - title: '覆盖您交易日每一个动作的 Skill', + title: '100+ 个 Skill,覆盖您交易日的每一个动作', desc: '每个 Skill 都是一套打包的工具集,可被任何受支持的 AI 客户端调用。点击任意卡片查看安装说明和详情。', marketplace: '已上架 Claude Code 插件市场', pluginDesc: '复制命令,在 Claude Code 中运行即可。', @@ -193,7 +174,7 @@ const LOCALE = { cases: { eyebrow: '实战案例', title: '真实用户案例,真实回报', - desc: '精选长桥社区用户分享。从快速实验到全面部署的量化系统——看看大家用 Skill 在做什么。', + desc: '精选长桥社区用户分享。从快速实验到全面部署的量化系统——看看大家用 Skill 在做什么。', read: '阅读案例', award: { tag: '奖励', @@ -226,7 +207,7 @@ const LOCALE = { recommended: '推荐', card1: { title: '复制发送给任意 AI', - desc: '将此消息粘贴到任意 AI 助手(Claude、ChatGPT、Cursor),它将引导您完成安装。', + desc: '将此消息粘贴到任意 AI 助手(Claude、ChatGPT、Cursor),它将引导您完成安装。
还没有长桥账户?先注册。', }, card2: { title: '下载 Skill ZIP 包', @@ -237,7 +218,7 @@ const LOCALE = { title: '通过 Npx 安装', desc: '适用于 Claude Code、Codex 等工具——全局安装所有 Skill。', }, - installCmd: `请按照以下指南安装 Longbridge AI toolkit:\n${siteHostname}/skill/install.md\n\n安装完成后,完成登录授权,查询一支股票行情确认可用。`, + installCmd: `请按照以下指南安装 Longbridge AI toolkit:\nhttps://open.longbridge.com/skill/install.md\n\n安装完成后,完成登录授权,查询一支股票行情确认可用。`, footer: { also: '也可在以下平台获取', and: '和', @@ -270,7 +251,7 @@ const LOCALE = { 'SEC / 监管文件(完整 Markdown 内容)', ], calendar: ['按标的查看即将发布的财报', '重要宏观数据事件', '按市场查看即将派息事件', '交易时段安排与节假日历'], - news: ['按标的获取最新资讯', '社区讨论话题', '自选股分组:查看、新建、编辑、删除'], + news: ['按标的获取最新资讯', '社区讨论话题', '自选股分组:查看、新建、编辑、删除'], account: [ '全子账户股票持仓', '全子账户基金持仓', @@ -291,8 +272,8 @@ const LOCALE = { demos: [ { nav: '跨市场选股', - title: 'HK · 美股 · A 股 · 新加坡——一次筛选,全市场覆盖', - desc: '跨市场追踪机会繁琐易错。告诉 AI 你的条件——市值、PE 区间、板块——再叠加 KDJ 金叉或 MACD 多头等技术信号,跨市场过滤,统一输出结果。查看所有支持市场的实时行情。', + title: 'HK · 美股 · A 股 · 新加坡——一次筛选,全市场覆盖。查看所有支持市场的实时行情。', + desc: '跨市场追踪机会繁琐易错。告诉 AI 你的条件——市值、PE 区间、板块——再叠加 KDJ 金叉或 MACD 多头等技术信号,跨市场过滤,统一输出结果。', prompt: '从美股和港股中,筛选市值超 500 亿、PE 低于 25 的科技股,且近期出现 MACD 金叉——按市值排序。', summary: '美股 + 港股科技板块筛选完成——共 8 只股票满足市值 ≥ 500 亿、PE < 25 条件。其中 3 只确认出现近期 MACD 金叉(DIF 上穿 DEA)。', @@ -358,16 +339,7 @@ const LOCALE = { eyebrow: 'AI · Skill', title1: 'Longbridge Skill', title2: '為您的 AI 解鎖市場洞察、深度研究與智能交易', - desc: '借助 Longbridge Skill,您的 AI 助手——Claude、Cursor、ChatGPT、Gemini、Codex——可以篩選股票、解讀財報、追蹤機構動向,並直接下單,全程自然對話。', - tabConnect: 'Connect AI', - tabPrompt: '複製命令', - connectLabel: '授權一步前置——在 Connect 頁面拿到授權碼,交給 AI,剩下的它來完成:', - connectSteps: [ - '登入 Connect 頁面,獲取一次性授權碼', - '將授權指令發送給您的 AI 助手', - 'AI 自動兌換授權碼並接入 Longbridge,全程無需跳轉瀏覽器', - ], - connectCta: 'Connect AI', + desc: '借助 Longbridge Skill,您的 AI 助手——Claude、Cursor、ChatGPT、Gemini、Codex——可以篩選股票、解讀財報、追蹤機構動向,並直接下單,全程自然對話。', installLabel: '複製發送給任意 AI——它將引導您完成安裝:', installLink: '查看各客戶端安裝指南', agentsLabel: '支援的 AI 工具', @@ -381,7 +353,7 @@ const LOCALE = { catalog: { eyebrow: 'Skill 目錄', badge: 'SKILL 目錄', - title: '覆蓋您交易日每一個動作的 Skill。', + title: '100+ 個 Skill,覆蓋您交易日的每一個動作。', desc: '每個 Skill 都是一套打包的工具集,可被任何受支援的 AI 客戶端調用。點擊任意卡片查看安裝說明和詳情。', marketplace: '已上架 Claude Code 外掛市場', pluginDesc: '複製命令,在 Claude Code 中運行即可。', @@ -424,7 +396,7 @@ const LOCALE = { cases: { eyebrow: '實戰案例', title: '真實用戶案例,真實回報。', - desc: '精選長橋社區用戶分享。從快速實驗到全面部署的量化系統——看看大家用 Skill 在做什麼。', + desc: '精選長橋社區用戶分享。從快速實驗到全面部署的量化系統——看看大家用 Skill 在做什麼。', read: '閱讀案例', award: { tag: '獎勵', @@ -457,7 +429,7 @@ const LOCALE = { recommended: '推薦', card1: { title: '複製發送給任意 AI', - desc: '將此消息貼上到任意 AI 助手(Claude、ChatGPT、Cursor),它將引導您完成安裝。', + desc: '將此消息貼上到任意 AI 助手(Claude、ChatGPT、Cursor),它將引導您完成安裝。
還未有長橋帳戶?先行注冊。', }, card2: { title: '下載 Skill ZIP 包', @@ -468,7 +440,7 @@ const LOCALE = { title: '透過 Npx 安裝', desc: '適用於 Claude Code、Codex 等工具——全局安裝所有 Skill。', }, - installCmd: `請按照以下指南安裝 Longbridge AI toolkit:\n${siteHostname}/skill/install.md\n\n安裝完成後,完成登錄授權,查詢一支股票行情確認可用。`, + installCmd: `請按照以下指南安裝 Longbridge AI toolkit:\nhttps://open.longbridge.com/skill/install.md\n\n安裝完成後,完成登錄授權,查詢一支股票行情確認可用。`, footer: { also: '也可在以下平台獲取', and: '及', @@ -501,7 +473,7 @@ const LOCALE = { 'SEC / 監管文件(完整 Markdown 內容)', ], calendar: ['按標的查看即將發佈的業績', '重要宏觀數據事件', '按市場查看即將派息事件', '交易時段安排與節假日曆'], - news: ['按標的獲取最新資訊', '社區討論話題', '自選股分組:查看、新建、編輯、刪除'], + news: ['按標的獲取最新資訊', '社區討論話題', '自選股分組:查看、新建、編輯、刪除'], account: [ '全子賬戶股票持倉', '全子賬戶基金持倉', @@ -522,8 +494,8 @@ const LOCALE = { demos: [ { nav: '跨市場選股', - title: 'HK · 美股 · A 股 · 新加坡——一次篩選,全市場覆蓋', - desc: '跨市場追蹤機會繁瑣易錯。告訴 AI 你的條件——市值、PE 區間、板塊——再疊加 KDJ 金叉或 MACD 多頭等技術信號,跨市場過濾,統一輸出結果。查看所有支援市場的即時行情。', + title: 'HK · 美股 · A 股 · 新加坡——一次篩選,全市場覆蓋。查看所有支援市場的即時行情。', + desc: '跨市場追蹤機會繁瑣易錯。告訴 AI 你的條件——市值、PE 區間、板塊——再疊加 KDJ 金叉或 MACD 多頭等技術信號,跨市場過濾,統一輸出結果。', prompt: '從美股和港股中,篩選市值超 500 億、PE 低於 25 的科技股,且近期出現 MACD 金叉——按市值排序。', summary: '美股 + 港股科技板塊篩選完成——共 8 只股票滿足市值 ≥ 500 億、PE < 25 條件。其中 3 只確認出現近期 MACD 金叉(DIF 上穿 DEA)。', @@ -859,8 +831,8 @@ const DEMO_SCENARIOS = [ { id: 'screen', nav: 'Cross-Market Screening', - title: 'HK · US · A-share · Singapore — multi-market screening in one shot.', - desc: 'Tracking opportunities across markets is brittle. Tell the AI your criteria — market cap, PE range, sector — and layer in technical signals like KDJ golden cross or MACD bullish. Cross-market filter, unified results. See live market data for all supported markets.', + title: 'HK · US · A-share · Singapore — multi-market screening in one shot. See live market data for all supported markets.', + desc: 'Tracking opportunities across markets is brittle. Tell the AI your criteria — market cap, PE range, sector — and layer in technical signals like KDJ golden cross or MACD bullish. Cross-market filter, unified results.', prompt: 'From US + HK markets, screen for tech stocks with market cap above ¥50B, PE under 25, and recent MACD golden cross — sort by market cap.', summary: @@ -1014,7 +986,7 @@ const CAP_REFERENCE = [ { tKey: 'news', items: [ - 'Latest news articles for a symbol', + 'Latest news articles for a symbol', 'Community discussion topics', 'Watchlist groups: list, create, update, delete', ], @@ -1046,7 +1018,6 @@ const CAP_REFERENCE = [ const activeCat = ref('All') const scenarioIdx = ref(0) const activeAgent = ref('OpenClaw') -const installMode = ref<'connect' | 'prompt'>('connect') const copied = ref(false) const copiedGetStarted = ref(false) @@ -1177,9 +1148,9 @@ const INSTALL_CLIENTS = computed(() => { }, manual: { label: content.value.catalog.manualLabel, - cmd: `# 1. Download ZIP\ncurl -LO ${siteHostname}/skill/${pkg}.zip\n# 2. Extract\nunzip ${pkg}.zip -d ~/.claude/skills/\n# 3. Restart AI client`, + cmd: `# 1. Download ZIP\ncurl -LO https://open.longbridge.com/skill/${pkg}.zip\n# 2. Extract\nunzip ${pkg}.zip -d ~/.claude/skills/\n# 3. Restart AI client`, uninstall: `rm -rf ~/.claude/skills/${pkg}/`, - upgrade: `curl -LO ${siteHostname}/skill/${pkg}.zip\nunzip -o ${pkg}.zip -d ~/.claude/skills/`, + upgrade: `curl -LO https://open.longbridge.com/skill/${pkg}.zip\nunzip -o ${pkg}.zip -d ~/.claude/skills/`, verify: `ls ~/.claude/skills/${pkg}/`, }, } as Record @@ -1292,100 +1263,56 @@ function triggerRipple(event: MouseEvent, el: HTMLElement) {

- {{ content.hero.desc }} +

-
- - -
- - - - + + + + +
+ + {{ content.hero.installLink }} + + + + +
@@ -1445,8 +1372,8 @@ function triggerRipple(event: MouseEvent, el: HTMLElement) {
-

{{ activeScenario.title }}

-

+

+

{{ activeScenario.desc }}

{{ content.demo.tryAsking }}
@@ -1633,7 +1560,7 @@ function triggerRipple(event: MouseEvent, el: HTMLElement) {
{{ skill.pkg }} -

{{ skill.desc }}

+

- {{ item }} +
@@ -1722,7 +1649,7 @@ function triggerRipple(event: MouseEvent, el: HTMLElement) { {{ content.cases.eyebrow }}

{{ content.cases.title }}

- {{ content.cases.desc }} +

@@ -1808,7 +1735,7 @@ function triggerRipple(event: MouseEvent, el: HTMLElement) {

{{ content.getstarted.card1.title }}

- {{ content.getstarted.card1.desc }} +

{{ installCmd }} @@ -1969,7 +1896,7 @@ function triggerRipple(event: MouseEvent, el: HTMLElement) {
-

{{ openCatalogSkill.desc }}

+

- + live quotes on Longbridge.', + prompt: 'Get me AAPL, TSLA, and 9988.HK current price and change.', }, { - id: 'content', - pkg: 'longbridge-content', - cat: 'discovery', - tools: 4, - name: 'News & Filings', - desc: 'Stock news, regulatory filings (SEC 10-K/10-Q/8-K), community discussion topics, and market rule reference.', - prompt: 'Summarize META\'s AI-related news from the past week.', + id: 'depth', + pkg: 'longbridge-depth', + cat: 'quote', + tools: 3, + name: 'Order Book Depth', + desc: 'Level-2 5/10-level bid/ask orderbook, HK broker queue, and tick-by-tick trade data.', + prompt: 'What does TSLA\'s 5-level bid/ask orderbook look like right now?', }, { - id: 'intel', - pkg: 'longbridge-intel', - cat: 'discovery', - tools: 8, - tagType: 'hot', - name: 'Market Intelligence', - desc: 'Strategy screener, popularity rankings, top movers, anomalies, ETF flows, sector rotation, supply chain, morning briefings, and ARK-style innovation analysis.', - prompt: 'Screen US tech stocks with MACD golden cross and market cap above $50B.', + id: 'kline', + pkg: 'longbridge-kline', + cat: 'quote', + tools: 2, + name: 'K-line / Intraday', + desc: 'Candlestick/OHLCV data for 1m/5m/15m/30m/1h/day/week/month/year periods, plus today\'s intraday minute series.', + prompt: 'Pull NVDA\'s daily chart for the past 6 months and show the trend.', }, { - id: 'watchlist', - pkg: 'longbridge-watchlist', - cat: 'discovery', - tools: 5, - name: 'Watchlist & Alerts', - desc: 'Watchlist group management, price alerts, and community stock lists — all writes require two-step confirmation.', - prompt: 'Add NVDA and TSLA to my "AI Compute" watchlist and alert me when NVDA hits 200.', + id: 'capital-flow', + pkg: 'longbridge-capital-flow', + cat: 'quote', + tools: 2, + name: 'Capital Flow', + desc: 'Intraday capital-flow time series and large/medium/small order distribution for a single stock. Same-day data only.', + prompt: 'How much net institutional inflow did 700.HK see today?', }, { - id: 'derivatives', - pkg: 'longbridge-derivatives', - cat: 'derivative', - tools: 5, - tagType: 'hot', - name: 'Options & Warrants', - desc: 'US/HK option chain with IV and Greeks, open interest by strike; HK warrants and CBBCs with issuer listings.', - prompt: 'List TSLA call options expiring next week near the money with IV and delta.', + id: 'fx', + pkg: 'longbridge-fx', + cat: 'quote', + tools: 1, + name: 'Exchange Rate', + desc: 'Real-time FX rates for all Longbridge-supported currencies. Multi-currency portfolio conversion and cross-rate derivation.', + prompt: 'What\'s USD/HKD today? Convert my whole portfolio to USD.', }, { - id: 'research', - pkg: 'longbridge-research', + id: 'fundamental', + pkg: 'longbridge-fundamental', cat: 'research', tools: 6, - name: 'Research', - desc: 'Institution ratings, consensus price targets, EPS forecasts, shareholder data, fund holders, insider trades (Form 4), short interest, and industry rankings.', - prompt: 'Who are NVDA\'s top institutional holders and how did they move last quarter?', + name: 'Fundamentals', + desc: 'Company financials — revenue, net income, EPS, ROE, margins, cash flow, dividend history, analyst consensus, and ratings.', + prompt: 'Give me NVDA\'s latest quarterly revenue, gross margin, and EPS.', }, { - id: 'fundamentals', - pkg: 'longbridge-fundamentals', + id: 'valuation', + pkg: 'longbridge-valuation', cat: 'research', - tools: 8, - name: 'Fundamentals', - desc: 'Financial statements, valuation multiples (PE/PB/PS), business segments, dividends, operating data, corporate actions, company profiles, and DCF frameworks.', - prompt: 'Give me NVDA\'s latest quarterly revenue, gross margin, EPS, and PE percentile.', + tools: 4, + name: 'Valuation', + desc: 'Current PE/PB/PS/EV-EBITDA snapshot, 1–3 year historical percentile, industry median, and industry rank.', + prompt: 'Where does Apple\'s current PE sit in its historical percentile?', + }, + { + id: 'peer-comparison', + pkg: 'longbridge-peer-comparison', + cat: 'research', + tools: 1, + name: 'Peer Comparison', + desc: '2–5 symbol comparison matrix — valuation, price, revenue KPIs, and market cap, with cross-currency caveats.', + prompt: 'Compare NVDA, AMD, and INTC on valuation and revenue growth.', }, { id: 'earnings', pkg: 'longbridge-earnings', cat: 'research', - tools: 3, + tools: 1, tagType: 'hot', - name: 'Earnings', - desc: 'Pre-earnings preview (guidance review, events, Q&A, key things to watch) and post-earnings analysis (beat/miss, segments, guidance, estimates, valuation).', + name: 'Earnings Report', + desc: 'Institutional-grade post-earnings report (8–12 page DOCX) — beat/miss, segment breakdown, margin trends, guidance, and valuation.', prompt: 'Do a post-earnings report for TSLA\'s latest quarterly results.', }, { - id: 'technical', - pkg: 'longbridge-technical', + id: 'corporate', + pkg: 'longbridge-corporate', cat: 'research', - tools: 6, - name: 'Technical Analysis', - desc: 'Candlestick patterns, Ichimoku, RSI/MACD/EMA/Bollinger, harmonic patterns, Elliott Wave, Chan Theory (缠论), Smart Money Concepts, and Turtle Trading.', - prompt: 'Diagnose NVDA on the daily — MACD, RSI, BOLL, and any candlestick patterns.', + tools: 5, + name: 'Company Profile', + desc: 'Major shareholders, executives, corporate actions (splits/dividends/rights), parent–subsidiary relations, and company overview.', + prompt: 'Who are AAPL\'s major shareholders? Any recent management changes?', + }, + { + id: 'flows', + pkg: 'longbridge-flows', + cat: 'research', + tools: 5, + name: 'Smart Money', + desc: '13F institutional portfolios, ETF/fund holders, Form 4 insider trades (US), short interest, and HK broker holdings.', + prompt: 'Who added the most AMD in the latest 13F? How high is short interest?', }, { - id: 'value-investing', - pkg: 'longbridge-value-investing', + id: 'catalyst-radar', + pkg: 'longbridge-catalyst-radar', cat: 'research', tools: 4, - name: 'Value Investing', - desc: 'Graham (NCAV/net-net/defensive-investor) and Buffett (economic moat/ROE/FCF) analysis — single-stock diagnostics and batch screening.', - prompt: 'Run a Buffett moat analysis on AAPL and a Graham net-net screen on HK small caps.', + tagType: 'hot', + name: 'Catalyst Radar', + desc: 'Watchlist monitoring radar — scans 7 catalyst dimensions (earnings, funds, insiders, ratings…) and generates morning/evening briefings.', + prompt: 'Give me my pre-market morning briefing for today.', + }, + { + id: 'news', + pkg: 'longbridge-news', + cat: 'research', + tools: 3, + name: 'News & Filings', + desc: 'Stock news, regulatory filings, and community discussion — classified by catalyst type with sentiment analysis.', + prompt: 'Summarize META\'s AI-related news from the past week.', }, { - id: 'quant', - pkg: 'longbridge-quant', + id: 'ah-premium', + pkg: 'longbridge-ah-premium', cat: 'research', + tools: 2, + name: 'A/H Premium', + desc: 'A/H premium ratio for Mainland-Chinese dual-listed companies — historical premium time series or today\'s intraday curve.', + prompt: 'Show me ICBC\'s (1398.HK) A/H premium trend over the past year.', + }, + { + id: 'derivatives', + pkg: 'longbridge-derivatives', + cat: 'derivative', + tools: 5, + tagType: 'hot', + name: 'Options & Warrants', + desc: 'US/HK options chain with IV and Greeks, open interest; HK warrants and CBBCs with issuer listings.', + prompt: 'List TSLA call options expiring next week near the money.', + }, + { + id: 'market-temp', + pkg: 'longbridge-market-temp', + cat: 'discovery', + tools: 3, + name: 'Market Temperature', + desc: 'Market temperature index (0–100), trading session times, and trading day calendar including half-days.', + prompt: 'What\'s the US market temperature today? Is it overheating?', + }, + { + id: 'calendar', + pkg: 'longbridge-calendar', + cat: 'discovery', + tools: 5, + name: 'Events Calendar', + desc: 'Forward-looking calendar — earnings, dividends, IPOs, macro releases (CPI/NFP/FOMC), and market holidays.', + prompt: 'What are the major earnings and macro data releases next week?', + }, + { + id: 'anomaly', + pkg: 'longbridge-anomaly', + cat: 'discovery', + tools: 2, + name: 'Intraday Anomalies', + desc: 'Market anomaly scanner and price-by-volume distribution — unusual price/volume movements or a stock\'s intraday volume profile.', + prompt: 'What anomalies hit HK stocks today? Where is TSLA\'s volume concentrated?', + }, + { + id: 'constituent', + pkg: 'longbridge-constituent', + cat: 'discovery', + tools: 1, + name: 'Index Members', + desc: 'Constituent stocks of an index or ETF, sortable by change, price, turnover, capital inflow, or market cap.', + prompt: 'Top 10 S&P 500 gainers today.', + }, + { + id: 'security-list', + pkg: 'longbridge-security-list', + cat: 'discovery', + tools: 2, + name: 'Security Directory', + desc: 'US overnight-eligible securities directory and HK broker participant dictionary (broker_id ↔ name).', + prompt: 'List the securities available for US overnight trading.', + }, + { + id: 'watchlist', + pkg: 'longbridge-watchlist', + cat: 'discovery', + tools: 2, + name: 'Watchlist View', + desc: 'Read-only access to your Longbridge watchlist groups and symbols — pair with real-time quotes for fast scanning.', + prompt: 'How did my "AI Compute" watchlist group perform today?', + }, + { + id: 'watchlist-admin', + pkg: 'longbridge-watchlist-admin', + cat: 'discovery', + tools: 4, + name: 'Watchlist Manager', + desc: 'Create/rename/delete groups and add/remove symbols — every mutation requires a two-step preview + confirm.', + prompt: 'Add AVGO and MRVL to my "AI Compute" watchlist group.', + }, + { + id: 'orders', + pkg: 'longbridge-orders', + cat: 'trade', + tools: 5, + name: 'Orders & History', + desc: 'Read-only — today\'s/historical orders, executions, cash flow (deposits, withdrawals, dividends, settlements).', + prompt: 'Show me my executions and dividend records from last month.', + }, + { + id: 'alert', + pkg: 'longbridge-alert', + cat: 'trade', + tools: 4, + name: 'Price Alerts', + desc: 'Price alerts — list, add, enable/disable, or delete. Every mutation requires a two-step preview + confirm.', + prompt: 'Alert me when NVDA reaches 200.', + }, + { + id: 'dca', + pkg: 'longbridge-dca', + cat: 'trade', tools: 6, - name: 'Quant Strategies', - desc: 'Pairs trading/cointegration, volatility regimes, seasonality, multi-factor models (IC/IR), ML prediction, strategy optimization, and hedging frameworks.', - prompt: 'Build a pairs trading strategy between NVDA and AMD and backtest it.', + tagType: 'risk', + name: 'DCA Plans', + desc: 'Recurring-investment (DCA) plans — list, create, update/pause/resume/stop. Every mutation is two-step confirmed.', + prompt: 'Create a monthly 500 USD DCA plan for AAPL.', + }, + { + id: 'subscriptions', + pkg: 'longbridge-subscriptions', + cat: 'trade', + tools: 1, + name: 'Push Subscriptions', + desc: 'List active real-time WebSocket subscriptions in the current CLI session — symbols, types, periods. Diagnostic only.', + prompt: 'What real-time data streams am I currently subscribed to?', + }, + { + id: 'positions', + pkg: 'longbridge-positions', + cat: 'portfolio', + tools: 5, + name: 'Holdings & Assets', + desc: 'Stock/fund positions, multi-currency cash, margin ratio (initial/maintenance/forced), and max buy/sell quantity.', + prompt: 'What are all my HK stock positions and total floating P&L?', }, { id: 'portfolio', pkg: 'longbridge-portfolio', cat: 'portfolio', - tools: 8, + tools: 5, tagType: 'hot', - name: 'Portfolio & Account', - desc: 'Account assets, equity/fund positions, P&L, cash flow, statements, margin ratios, buy-power, order management, and DCA recurring investments.', - prompt: 'Review my portfolio performance this month and show which stocks dragged it down.', + name: 'Account Analysis', + desc: 'Account-level analysis — total market value, cash share, period P&L, stock contribution ranking, industry/currency exposure.', + prompt: 'Review my portfolio performance this month — who dragged it down?', + }, + { + id: 'statement', + pkg: 'longbridge-statement', + cat: 'portfolio', + tools: 2, + name: 'Statements', + desc: 'Daily/monthly account statements — list and export as CSV or markdown for accounting, tax filing, or audit.', + prompt: 'Export last month\'s statement — holdings and cash flow as CSV.', }, ], ui: { catLabels: { all: 'All', - meta: 'Platform', quote: 'Market', research: 'Research', derivative: 'Derivatives', discovery: 'Discovery', + trade: 'Trade', portfolio: 'Portfolio', + meta: 'Platform', }, - title: '13 Skills, covering every move in your trading day', + title: '30 Skills, covering every move in your trading day', subtitle: 'Each Skill is a packaged set of tools, callable by any supported AI client. Click any card to see install instructions and details.', searchPlaceholder: 'Search skills', noResults: (q) => `No skills matching "${q}". Try a different keyword, or`, diff --git a/docs/.vitepress/theme/components/skill-catalog/zh-CN/index.ts b/docs/.vitepress/theme/components/skill-catalog/zh-CN/index.ts index e3f59208..b754b1bc 100644 --- a/docs/.vitepress/theme/components/skill-catalog/zh-CN/index.ts +++ b/docs/.vitepress/theme/components/skill-catalog/zh-CN/index.ts @@ -6,138 +6,293 @@ export const locale: CatalogLocale = { id: 'longbridge', pkg: 'longbridge', cat: 'meta', - tools: 10, + tools: 8, tagType: 'hot', name: '长桥总览', - desc: 'Longbridge 平台总入口,覆盖 CLI / Python / Rust SDK / MCP / LLMs.txt 集成,可用于任何行情与账户查询。', + desc: 'Longbridge 平台入口,覆盖 CLI / Python / Rust SDK / MCP / LLMs.txt 集成。', prompt: '帮我看下 NVDA 现价、新闻和我的持仓影响。', }, { - id: 'market-data', - pkg: 'longbridge-market-data', + id: 'quote', + pkg: 'longbridge-quote', cat: 'quote', - tools: 8, + tools: 3, tagType: 'hot', - name: '行情数据', - desc: '实时报价、K 线、盘口、资金流、市场温度、汇率、IPO 日历、ADR 溢价,覆盖港 / 美 / A 股 / 新加坡。', - prompt: 'NVDA 现价、近半年日 K 和今日资金流给我看看。', + name: '实时行情', + desc: '港 / 美 / A 股 / 新加坡实时报价、静态信息与估值指数(PE/PB/换手率)。查看 Longbridge 实时行情。', + prompt: '帮我看 AAPL、TSLA、9988.HK 现价和涨跌幅。', }, { - id: 'content', - pkg: 'longbridge-content', - cat: 'discovery', - tools: 4, - name: '新闻与公告', - desc: '单股新闻、SEC 监管文件(10-K/10-Q/8-K)、社区话题讨论和市场规则查询。', - prompt: 'META 最近一周和 AI 相关的新闻整理一下。', + id: 'depth', + pkg: 'longbridge-depth', + cat: 'quote', + tools: 3, + name: '盘口深度', + desc: 'Level-2 五/十档买卖盘、HK 经纪商队列、逐笔 tick 成交。', + prompt: 'TSLA 现在的买卖五档分布如何?', }, { - id: 'intel', - pkg: 'longbridge-intel', - cat: 'discovery', - tools: 8, - tagType: 'hot', - name: '市场情报', - desc: '策略筛选、热度排行、异动侦测、ETF 资金流、板块轮动、产业链、晨报生成和 ARK 式颠覆创新分析。', - prompt: '帮我筛选美股科技股,MACD 金叉 + 市值 500 亿以上。', + id: 'kline', + pkg: 'longbridge-kline', + cat: 'quote', + tools: 2, + name: 'K 线 / 分时', + desc: '1m / 5m / 15m / 30m / 1h / 日 / 周 / 月 / 年 K 线,历史区间与今日分时。', + prompt: '调出 NVDA 近半年日 K,看下走势。', }, { - id: 'watchlist', - pkg: 'longbridge-watchlist', - cat: 'discovery', - tools: 5, - name: '自选与提醒', - desc: '自选股分组管理、价格提醒与社区股票清单,所有写操作需二次确认。', - prompt: '把 NVDA、TSLA 加进「AI 算力」自选,NVDA 涨到 200 提醒我。', + id: 'capital-flow', + pkg: 'longbridge-capital-flow', + cat: 'quote', + tools: 2, + name: '资金流向', + desc: '日内资金流时间序列与大 / 中 / 小单分布(仅当日,无历史区间)。', + prompt: '今天 700.HK 主力资金净流入多少?', }, { - id: 'derivatives', - pkg: 'longbridge-derivatives', - cat: 'derivative', - tools: 5, - tagType: 'hot', - name: '期权与窝轮', - desc: '美股 / 港股期权链,含 IV、Greeks、持仓量;港股窝轮 / 牛熊证报价与发行人列表。', - prompt: 'TSLA 下周到期、平值附近的看涨期权,给我 IV 和 delta。', + id: 'fx', + pkg: 'longbridge-fx', + cat: 'quote', + tools: 1, + name: '汇率', + desc: '所有 Longbridge 支持币种的实时汇率,多币种持仓换算与 cross-rate 推导。', + prompt: '今天美元兑港币多少?把我组合统一换成 USD。', }, { - id: 'research', - pkg: 'longbridge-research', + id: 'fundamental', + pkg: 'longbridge-fundamental', cat: 'research', tools: 6, - name: '机构研究', - desc: '机构评级、目标价一致预期、EPS 预测、股东结构、基金持仓、内部人交易(Form 4)、空头数据和行业排名。', - prompt: 'NVDA 最大机构持有人是谁?上季度怎么操作的?', + name: '基本面', + desc: '财报 KPI、同比 / 环比、分红历史、EPS 一致预期、机构评级、公司动作。', + prompt: 'NVDA 最新季度营收、毛利率和 EPS 给我。', }, { - id: 'fundamentals', - pkg: 'longbridge-fundamentals', + id: 'valuation', + pkg: 'longbridge-valuation', cat: 'research', - tools: 8, - name: '基本面', - desc: '财务三表、估值倍数(PE/PB/PS)、业务分部、分红、经营数据、公司动作、高管画像与 DCF 框架。', - prompt: 'NVDA 最新季度营收、毛利率、EPS 和 PE 历史百分位给我。', + tools: 4, + name: '估值分析', + desc: 'PE / PB / PS / EV-EBITDA 当前值,1–3 年历史百分位,行业中位与排名。', + prompt: '苹果当前 PE 在历史百分位的什么位置?', + }, + { + id: 'peer-comparison', + pkg: 'longbridge-peer-comparison', + cat: 'research', + tools: 1, + name: '同业对比', + desc: '2–5 只标的横向对比矩阵:估值、价格、KPI、市值,自动标注币种风险。', + prompt: 'NVDA、AMD、INTC 三家估值与营收增速对比。', }, { id: 'earnings', pkg: 'longbridge-earnings', cat: 'research', - tools: 3, + tools: 1, tagType: 'hot', - name: '财报分析', - desc: '财报前瞻(上季度指引复盘、事件追踪、Q&A 要点、关注框架)与财报点评(超预期分析、分部、指引、估值)。', - prompt: '帮我做 TSLA 最新季报的 post-earnings 分析。', + name: '财报点评', + desc: '机构级季报点评:8–12 页 DOCX 报告 + 对话纪要,覆盖 Beat/Miss、分部、指引、估值。', + prompt: '帮我做 TSLA 最新季报的 post-earnings 报告。', }, { - id: 'technical', - pkg: 'longbridge-technical', + id: 'corporate', + pkg: 'longbridge-corporate', cat: 'research', - tools: 6, - name: '技术分析', - desc: 'K 线形态、一目均衡表、RSI/MACD/EMA/布林带、谐波形态、艾略特波浪、缠论、Smart Money 与海龟交易信号。', - prompt: '帮我诊断 NVDA 日线:MACD、RSI、布林带,有没有 K 线形态信号?', + tools: 5, + name: '公司画像', + desc: '股东结构、高管与董事会、公司简介、拆股 / 派息历史、母子公司关系。', + prompt: 'AAPL 大股东都有谁?高管最近有变动吗?', + }, + { + id: 'flows', + pkg: 'longbridge-flows', + cat: 'research', + tools: 5, + name: '资金面', + desc: '13F 机构持仓、ETF 基金持有、Form 4 内部人、空头数据、HK 经纪商持仓。', + prompt: 'AMD 最近 13F 谁加仓最多?空头比例多高?', }, { - id: 'value-investing', - pkg: 'longbridge-value-investing', + id: 'catalyst-radar', + pkg: 'longbridge-catalyst-radar', cat: 'research', tools: 4, - name: '价值投资', - desc: '格雷厄姆(NCAV / 净流动资产 / 防御型投资者)与巴菲特(护城河 / ROE / FCF)分析,支持单股诊断与批量筛选。', - prompt: '帮我对 AAPL 做巴菲特护城河分析,再筛一批港股格雷厄姆净净值股票。', + tagType: 'hot', + name: '催化雷达', + desc: '自选股监控雷达,扫描 7 维催化(财报超预期、资金、内部人、评级…),生成晨晚报。', + prompt: '给我今天的自选盘前晨报。', + }, + { + id: 'news', + pkg: 'longbridge-news', + cat: 'research', + tools: 3, + name: '新闻 / 公告', + desc: '单股新闻、监管文件、社区讨论按催化 / 监管 / 战略 / 财务等分类,附情绪倾向。', + prompt: 'META 最近一周和 AI 相关的新闻整理一下。', }, { - id: 'quant', - pkg: 'longbridge-quant', + id: 'ah-premium', + pkg: 'longbridge-ah-premium', cat: 'research', + tools: 2, + name: 'A/H 溢价', + desc: '两地上市公司 A/H 股价差与溢价率,历史日 K 或今日分时曲线。', + prompt: '工行 (1398.HK) 过去一年的 A/H 溢价走势。', + }, + { + id: 'derivatives', + pkg: 'longbridge-derivatives', + cat: 'derivative', + tools: 5, + tagType: 'hot', + name: '期权与窝轮', + desc: '美股 / 港股期权链、IV 与 Greeks、持仓量;港股窝轮 / 牛熊证报价与发行人列表。', + prompt: 'TSLA 下周到期、平值附近的看涨期权列一下。', + }, + { + id: 'market-temp', + pkg: 'longbridge-market-temp', + cat: 'discovery', + tools: 3, + name: '市场温度', + desc: '0–100 市场情绪温度、交易时段、交易日历(含半日市),判断是否开盘。', + prompt: '美股今天市场温度多少?是不是过热?', + }, + { + id: 'calendar', + pkg: 'longbridge-calendar', + cat: 'discovery', + tools: 5, + name: '事件日历', + desc: '前瞻性日历:财报、除权除息、IPO、宏观数据(CPI / 非农 / FOMC)、休市日。', + prompt: '下周美股有哪些重要财报和宏观数据?', + }, + { + id: 'anomaly', + pkg: 'longbridge-anomaly', + cat: 'discovery', + tools: 2, + name: '盘中异动', + desc: '市场或单股的盘中异动榜,以及单股价格成交分布(筹码 / volume profile)。', + prompt: '今天港股有哪些异动?TSLA 筹码集中在哪?', + }, + { + id: 'constituent', + pkg: 'longbridge-constituent', + cat: 'discovery', + tools: 1, + name: '指数成分', + desc: '指数 / ETF 成分股清单,按涨跌、价格、成交、净流入、市值多维排序。', + prompt: '标普 500 今天涨幅榜前 10。', + }, + { + id: 'security-list', + pkg: 'longbridge-security-list', + cat: 'discovery', + tools: 2, + name: '标的目录', + desc: '美股夜盘可交易标的目录、HK 经纪商参与者字典(broker_id ↔ 名称)。', + prompt: '美股夜盘可交易的标的列出一下。', + }, + { + id: 'watchlist', + pkg: 'longbridge-watchlist', + cat: 'discovery', + tools: 2, + name: '自选浏览', + desc: '只读访问我的自选分组与组内标的,配合实时报价快速看变动。', + prompt: '我的「AI 算力」分组今天表现如何?', + }, + { + id: 'watchlist-admin', + pkg: 'longbridge-watchlist-admin', + cat: 'discovery', + tools: 4, + name: '自选管理', + desc: '建组 / 改名 / 删组、增删自选;写操作走两步预览 + 确认协议。', + prompt: '把 AVGO、MRVL 加进我的「AI 算力」分组。', + }, + { + id: 'orders', + pkg: 'longbridge-orders', + cat: 'trade', + tools: 5, + name: '订单与流水', + desc: '只读:今日 / 历史订单、单笔状态、成交明细、出入金 / 分红 / 结算流水。', + prompt: '我上个月的成交明细和分红记录。', + }, + { + id: 'alert', + pkg: 'longbridge-alert', + cat: 'trade', + tools: 4, + name: '价格提醒', + desc: '价格提醒的增 / 删 / 启用 / 停用,写操作走预览 + 确认;只读列表无门槛。', + prompt: 'NVDA 涨到 200 时提醒我。', + }, + { + id: 'dca', + pkg: 'longbridge-dca', + cat: 'trade', tools: 6, - name: '量化策略', - desc: '配对交易 / 协整、波动率策略、季节性、多因子模型(IC/IR)、机器学习预测、策略优化与对冲框架。', - prompt: '帮我做 NVDA 和 AMD 的配对交易策略,并回测一下。', + tagType: 'risk', + name: '定投计划', + desc: '创建 / 修改 / 暂停 / 停止定投计划;每次都要复述参数确认。', + prompt: '帮我建一个每月 500 USD 定投 AAPL 的计划。', + }, + { + id: 'subscriptions', + pkg: 'longbridge-subscriptions', + cat: 'trade', + tools: 1, + name: '推送订阅', + desc: '查看当前 CLI 会话的实时 WebSocket 订阅(symbols / sub_types / 周期),诊断用。', + prompt: '我现在订阅了哪些实时数据?', + }, + { + id: 'positions', + pkg: 'longbridge-positions', + cat: 'portfolio', + tools: 5, + name: '持仓 / 资产', + desc: '股票 + 基金持仓、多币种现金、保证金率(初始 / 维持 / 强平)、最大可买卖数量。', + prompt: '我现在所有港股持仓和总浮盈是多少?', }, { id: 'portfolio', pkg: 'longbridge-portfolio', cat: 'portfolio', - tools: 8, + tools: 5, tagType: 'hot', - name: '账户与持仓', - desc: '账户资产、股票 / 基金持仓、盈亏、资金流水、对账单、保证金率、买入力估算、订单管理与定投计划。', + name: '账户分析', + desc: '账户总市值、现金占比、区间 P&L、单股贡献排行、行业 / 币种暴露、PnL 曲线。', prompt: '复盘一下我这个月的组合表现,谁拖了后腿?', }, + { + id: 'statement', + pkg: 'longbridge-statement', + cat: 'portfolio', + tools: 2, + name: '对账单', + desc: '日 / 月对账单清单与分项 CSV / Markdown 导出,用于记账、报税、审计。', + prompt: '把上个月月结单的持仓和现金流导出 CSV。', + }, ], ui: { catLabels: { - all: '全部', - meta: '平台', - quote: '行情数据', - research: '基本面研究', + all: '全部', + quote: '行情数据', + research: '基本面研究', derivative: '衍生品', - discovery: '行情发现', - portfolio: '账户与持仓', + discovery: '行情发现', + trade: '交易与提醒', + portfolio: '账户与持仓', + meta: '平台', }, - title: '13 个 Skill,覆盖你交易日的每个动作', + title: '30 个 Skill,覆盖你交易日的每个动作', subtitle: '每个 Skill 是一组打包的工具,可被任意支持的 AI 客户端调用。点开任意卡片查看安装方式与详细说明。', searchPlaceholder: '搜索 Skill', noResults: (q) => `没有匹配「${q}」的 Skill。试试别的关键词,或`, @@ -151,7 +306,7 @@ export const locale: CatalogLocale = { modalPromptLabel: '示例 Prompt', modalInstallLabel: '安装', tagLabels: { - hot: '热门', + hot: '热门', risk: '高风险', }, }, diff --git a/docs/.vitepress/theme/components/skill-catalog/zh-HK/index.ts b/docs/.vitepress/theme/components/skill-catalog/zh-HK/index.ts index 8de88772..ffb9b2ae 100644 --- a/docs/.vitepress/theme/components/skill-catalog/zh-HK/index.ts +++ b/docs/.vitepress/theme/components/skill-catalog/zh-HK/index.ts @@ -6,138 +6,293 @@ export const locale: CatalogLocale = { id: 'longbridge', pkg: 'longbridge', cat: 'meta', - tools: 10, + tools: 8, tagType: 'hot', name: '長橋總覽', - desc: 'Longbridge 平台總入口,覆蓋 CLI / Python / Rust SDK / MCP / LLMs.txt 整合,可用於任何行情與賬戶查詢。', + desc: 'Longbridge 平台入口,覆蓋 CLI / Python / Rust SDK / MCP / LLMs.txt 整合。', prompt: '幫我看下 NVDA 現價、新聞和我的持倉影響。', }, { - id: 'market-data', - pkg: 'longbridge-market-data', + id: 'quote', + pkg: 'longbridge-quote', cat: 'quote', - tools: 8, + tools: 3, tagType: 'hot', - name: '行情數據', - desc: '即時報價、K 線、盤口、資金流、市場溫度、匯率、IPO 日曆、ADR 溢價,覆蓋港 / 美 / A 股 / 新加坡。', - prompt: 'NVDA 現價、近半年日 K 和今日資金流給我看看。', + name: '即時行情', + desc: '港 / 美 / A 股 / 新加坡即時報價、靜態資訊與估值指數(PE/PB/換手率)。查看 Longbridge 即時行情。', + prompt: '幫我看 AAPL、TSLA、9988.HK 現價和漲跌幅。', }, { - id: 'content', - pkg: 'longbridge-content', - cat: 'discovery', - tools: 4, - name: '新聞與公告', - desc: '單股新聞、SEC 監管文件(10-K/10-Q/8-K)、社區話題討論和市場規則查詢。', - prompt: 'META 最近一週和 AI 相關的新聞整理一下。', + id: 'depth', + pkg: 'longbridge-depth', + cat: 'quote', + tools: 3, + name: '盤口深度', + desc: 'Level-2 五/十檔買賣盤、HK 經紀商隊列、逐筆 tick 成交。', + prompt: 'TSLA 現在的買賣五檔分佈如何?', }, { - id: 'intel', - pkg: 'longbridge-intel', - cat: 'discovery', - tools: 8, - tagType: 'hot', - name: '市場情報', - desc: '策略篩選、熱度排行、異動偵測、ETF 資金流、板塊輪動、產業鏈、晨報生成和 ARK 式顛覆創新分析。', - prompt: '幫我篩選美股科技股,MACD 金叉 + 市值 500 億以上。', + id: 'kline', + pkg: 'longbridge-kline', + cat: 'quote', + tools: 2, + name: 'K 線 / 分時', + desc: '1m / 5m / 15m / 30m / 1h / 日 / 週 / 月 / 年 K 線,歷史區間與今日分時。', + prompt: '調出 NVDA 近半年日 K,看下走勢。', }, { - id: 'watchlist', - pkg: 'longbridge-watchlist', - cat: 'discovery', - tools: 5, - name: '自選與提醒', - desc: '自選股分組管理、價格提醒與社區股票清單,所有寫操作需二次確認。', - prompt: '把 NVDA、TSLA 加進「AI 算力」自選,NVDA 漲到 200 提醒我。', + id: 'capital-flow', + pkg: 'longbridge-capital-flow', + cat: 'quote', + tools: 2, + name: '資金流向', + desc: '日內資金流時間序列與大 / 中 / 小單分佈(僅當日,無歷史區間)。', + prompt: '今天 700.HK 主力資金淨流入多少?', }, { - id: 'derivatives', - pkg: 'longbridge-derivatives', - cat: 'derivative', - tools: 5, - tagType: 'hot', - name: '期權與窩輪', - desc: '美股 / 港股期權鏈,含 IV、Greeks、持倉量;港股窩輪 / 牛熊證報價與發行人列表。', - prompt: 'TSLA 下週到期、平值附近的看漲期權,給我 IV 和 delta。', + id: 'fx', + pkg: 'longbridge-fx', + cat: 'quote', + tools: 1, + name: '匯率', + desc: '所有 Longbridge 支持幣種的即時匯率,多幣種持倉換算與 cross-rate 推導。', + prompt: '今天美元兌港幣多少?把我組合統一換成 USD。', }, { - id: 'research', - pkg: 'longbridge-research', + id: 'fundamental', + pkg: 'longbridge-fundamental', cat: 'research', tools: 6, - name: '機構研究', - desc: '機構評級、目標價一致預期、EPS 預測、股東結構、基金持倉、內部人交易(Form 4)、空頭數據和行業排名。', - prompt: 'NVDA 最大機構持有人是誰?上季度怎麼操作的?', + name: '基本面', + desc: '財報 KPI、同比 / 環比、分紅歷史、EPS 一致預期、機構評級、公司動作。', + prompt: 'NVDA 最新季度營收、毛利率和 EPS 給我。', }, { - id: 'fundamentals', - pkg: 'longbridge-fundamentals', + id: 'valuation', + pkg: 'longbridge-valuation', cat: 'research', - tools: 8, - name: '基本面', - desc: '財務三表、估值倍數(PE/PB/PS)、業務分部、分紅、經營數據、公司動作、高管畫像與 DCF 框架。', - prompt: 'NVDA 最新季度營收、毛利率、EPS 和 PE 歷史百分位給我。', + tools: 4, + name: '估值分析', + desc: 'PE / PB / PS / EV-EBITDA 當前值,1–3 年歷史百分位,行業中位與排名。', + prompt: '蘋果當前 PE 在歷史百分位的什麼位置?', + }, + { + id: 'peer-comparison', + pkg: 'longbridge-peer-comparison', + cat: 'research', + tools: 1, + name: '同業對比', + desc: '2–5 只標的橫向對比矩陣:估值、價格、KPI、市值,自動標註幣種風險。', + prompt: 'NVDA、AMD、INTC 三家估值與營收增速對比。', }, { id: 'earnings', pkg: 'longbridge-earnings', cat: 'research', - tools: 3, + tools: 1, tagType: 'hot', - name: '財報分析', - desc: '財報前瞻(上季度指引複盤、事件追蹤、Q&A 要點、關注框架)與財報點評(超預期分析、分部、指引、估值)。', - prompt: '幫我做 TSLA 最新季報的 post-earnings 分析。', + name: '財報點評', + desc: '機構級季報點評:8–12 頁 DOCX 報告 + 對話紀要,覆蓋 Beat/Miss、分部、指引、估值。', + prompt: '幫我做 TSLA 最新季報的 post-earnings 報告。', }, { - id: 'technical', - pkg: 'longbridge-technical', + id: 'corporate', + pkg: 'longbridge-corporate', cat: 'research', - tools: 6, - name: '技術分析', - desc: 'K 線形態、一目均衡表、RSI/MACD/EMA/布林帶、諧波形態、艾略特波浪、纏論、Smart Money 與海龜交易信號。', - prompt: '幫我診斷 NVDA 日線:MACD、RSI、布林帶,有沒有 K 線形態信號?', + tools: 5, + name: '公司畫像', + desc: '股東結構、高管與董事會、公司簡介、拆股 / 派息歷史、母子公司關係。', + prompt: 'AAPL 大股東都有誰?高管最近有變動嗎?', + }, + { + id: 'flows', + pkg: 'longbridge-flows', + cat: 'research', + tools: 5, + name: '資金面', + desc: '13F 機構持倉、ETF 基金持有、Form 4 內部人、空頭數據、HK 經紀商持倉。', + prompt: 'AMD 最近 13F 誰加倉最多?空頭比例多高?', }, { - id: 'value-investing', - pkg: 'longbridge-value-investing', + id: 'catalyst-radar', + pkg: 'longbridge-catalyst-radar', cat: 'research', tools: 4, - name: '價值投資', - desc: '格雷厄姆(NCAV / 淨流動資產 / 防禦型投資者)與巴菲特(護城河 / ROE / FCF)分析,支持單股診斷與批量篩選。', - prompt: '幫我對 AAPL 做巴菲特護城河分析,再篩一批港股格雷厄姆淨淨值股票。', + tagType: 'hot', + name: '催化雷達', + desc: '自選股監控雷達,掃描 7 維催化(財報超預期、資金、內部人、評級…),生成晨晚報。', + prompt: '給我今天的自選盤前晨報。', + }, + { + id: 'news', + pkg: 'longbridge-news', + cat: 'research', + tools: 3, + name: '新聞 / 公告', + desc: '單股新聞、監管文件、社區討論按催化 / 監管 / 戰略 / 財務等分類,附情緒傾向。', + prompt: 'META 最近一週和 AI 相關的新聞整理一下。', }, { - id: 'quant', - pkg: 'longbridge-quant', + id: 'ah-premium', + pkg: 'longbridge-ah-premium', cat: 'research', + tools: 2, + name: 'A/H 溢價', + desc: '兩地上市公司 A/H 股價差與溢價率,歷史日 K 或今日分時曲線。', + prompt: '工行 (1398.HK) 過去一年的 A/H 溢價走勢。', + }, + { + id: 'derivatives', + pkg: 'longbridge-derivatives', + cat: 'derivative', + tools: 5, + tagType: 'hot', + name: '期權與窩輪', + desc: '美股 / 港股期權鏈、IV 與 Greeks、持倉量;港股窩輪 / 牛熊證報價與發行人列表。', + prompt: 'TSLA 下週到期、平值附近的看漲期權列一下。', + }, + { + id: 'market-temp', + pkg: 'longbridge-market-temp', + cat: 'discovery', + tools: 3, + name: '市場溫度', + desc: '0–100 市場情緒溫度、交易時段、交易日曆(含半日市),判斷是否開盤。', + prompt: '美股今天市場溫度多少?是不是過熱?', + }, + { + id: 'calendar', + pkg: 'longbridge-calendar', + cat: 'discovery', + tools: 5, + name: '事件日曆', + desc: '前瞻性日曆:財報、除權除息、IPO、宏觀數據(CPI / 非農 / FOMC)、休市日。', + prompt: '下週美股有哪些重要財報和宏觀數據?', + }, + { + id: 'anomaly', + pkg: 'longbridge-anomaly', + cat: 'discovery', + tools: 2, + name: '盤中異動', + desc: '市場或單股的盤中異動榜,以及單股價格成交分佈(籌碼 / volume profile)。', + prompt: '今天港股有哪些異動?TSLA 籌碼集中在哪?', + }, + { + id: 'constituent', + pkg: 'longbridge-constituent', + cat: 'discovery', + tools: 1, + name: '指數成分', + desc: '指數 / ETF 成分股清單,按漲跌、價格、成交、淨流入、市值多維排序。', + prompt: '標普 500 今天漲幅榜前 10。', + }, + { + id: 'security-list', + pkg: 'longbridge-security-list', + cat: 'discovery', + tools: 2, + name: '標的目錄', + desc: '美股夜盤可交易標的目錄、HK 經紀商參與者字典(broker_id ↔ 名稱)。', + prompt: '美股夜盤可交易的標的列出一下。', + }, + { + id: 'watchlist', + pkg: 'longbridge-watchlist', + cat: 'discovery', + tools: 2, + name: '自選瀏覽', + desc: '唯讀訪問我的自選分組與組內標的,配合即時報價快速看變動。', + prompt: '我的「AI 算力」分組今天表現如何?', + }, + { + id: 'watchlist-admin', + pkg: 'longbridge-watchlist-admin', + cat: 'discovery', + tools: 4, + name: '自選管理', + desc: '建組 / 改名 / 刪組、增刪自選;寫操作走兩步預覽 + 確認協議。', + prompt: '把 AVGO、MRVL 加進我的「AI 算力」分組。', + }, + { + id: 'orders', + pkg: 'longbridge-orders', + cat: 'trade', + tools: 5, + name: '訂單與流水', + desc: '唯讀:今日 / 歷史訂單、單筆狀態、成交明細、出入金 / 分紅 / 結算流水。', + prompt: '我上個月的成交明細和分紅記錄。', + }, + { + id: 'alert', + pkg: 'longbridge-alert', + cat: 'trade', + tools: 4, + name: '價格提醒', + desc: '價格提醒的增 / 刪 / 啟用 / 停用,寫操作走預覽 + 確認;唯讀列表無門檻。', + prompt: 'NVDA 漲到 200 時提醒我。', + }, + { + id: 'dca', + pkg: 'longbridge-dca', + cat: 'trade', tools: 6, - name: '量化策略', - desc: '配對交易 / 協整、波動率策略、季節性、多因子模型(IC/IR)、機器學習預測、策略優化與對沖框架。', - prompt: '幫我做 NVDA 和 AMD 的配對交易策略,並回測一下。', + tagType: 'risk', + name: '定投計劃', + desc: '創建 / 修改 / 暫停 / 停止定投計劃;每次都要複述參數確認。', + prompt: '幫我建一個每月 500 USD 定投 AAPL 的計劃。', + }, + { + id: 'subscriptions', + pkg: 'longbridge-subscriptions', + cat: 'trade', + tools: 1, + name: '推送訂閱', + desc: '查看當前 CLI 會話的即時 WebSocket 訂閱(symbols / sub_types / 週期),診斷用。', + prompt: '我現在訂閱了哪些即時數據?', + }, + { + id: 'positions', + pkg: 'longbridge-positions', + cat: 'portfolio', + tools: 5, + name: '持倉 / 資產', + desc: '股票 + 基金持倉、多幣種現金、保證金率(初始 / 維持 / 強平)、最大可買卖數量。', + prompt: '我現在所有港股持倉和總浮盈是多少?', }, { id: 'portfolio', pkg: 'longbridge-portfolio', cat: 'portfolio', - tools: 8, + tools: 5, tagType: 'hot', - name: '賬戶與持倉', - desc: '賬戶資產、股票 / 基金持倉、盈虧、資金流水、對賬單、保證金率、買入力估算、訂單管理與定投計劃。', + name: '賬戶分析', + desc: '賬戶總市值、現金佔比、區間 P&L、單股貢獻排行、行業 / 幣種暴露、PnL 曲線。', prompt: '複盤一下我這個月的組合表現,誰拖了後腿?', }, + { + id: 'statement', + pkg: 'longbridge-statement', + cat: 'portfolio', + tools: 2, + name: '對賬單', + desc: '日 / 月對賬單清單與分項 CSV / Markdown 匯出,用於記賬、報稅、審計。', + prompt: '把上個月月結單的持倉和現金流匯出 CSV。', + }, ], ui: { catLabels: { - all: '全部', - meta: '平台', - quote: '行情數據', - research: '基本面研究', + all: '全部', + quote: '行情數據', + research: '基本面研究', derivative: '衍生品', - discovery: '行情發現', - portfolio: '賬戶與持倉', + discovery: '行情發現', + trade: '交易與提醒', + portfolio: '賬戶與持倉', + meta: '平台', }, - title: '13 個 Skill,覆蓋你交易日的每個動作', + title: '30 個 Skill,覆蓋你交易日的每個動作', subtitle: '每個 Skill 是一組打包的工具,可被任意支持的 AI 客戶端調用。點開任意卡片查看安裝方式與詳細說明。', searchPlaceholder: '搜索 Skill', noResults: (q) => `沒有匹配「${q}」的 Skill。試試別的關鍵詞,或`, @@ -151,7 +306,7 @@ export const locale: CatalogLocale = { modalPromptLabel: '示例 Prompt', modalInstallLabel: '安裝', tagLabels: { - hot: '熱門', + hot: '熱門', risk: '高風險', }, }, diff --git a/docs/.vitepress/theme/locales/en.json b/docs/.vitepress/theme/locales/en.json index 665ea620..3f16f2ea 100644 --- a/docs/.vitepress/theme/locales/en.json +++ b/docs/.vitepress/theme/locales/en.json @@ -7,6 +7,9 @@ "mcp.required": "Required", "mcp.enum": "Enum", "mcp.default": "Default", + "mcp.screenerNotePrefix": "These tools mirror the ", + "mcp.screenerNoteLinkText": "Longbridge Screener", + "mcp.screenerNoteSuffix": " — try it to understand the data model before writing prompts.", "api.section.authorizations": "Authorizations", "api.section.pathParams": "Path Parameters", "api.section.queryParams": "Query Parameters", @@ -84,7 +87,7 @@ "footer.feedback": "Feedback", "footer.terms": "Terms of Service", "footer.privacy": "Privacy Policy", - "footer.agreements": "Agreements & Disclaimers", + "footer.risk": "Risk Disclosure", "footer.download": "Download", "footer.statusPage": "Status", "footer.about": "About", diff --git a/docs/.vitepress/theme/locales/zh-CN.json b/docs/.vitepress/theme/locales/zh-CN.json index 8fd451d3..84549565 100644 --- a/docs/.vitepress/theme/locales/zh-CN.json +++ b/docs/.vitepress/theme/locales/zh-CN.json @@ -7,6 +7,9 @@ "mcp.required": "必填", "mcp.enum": "枚举值", "mcp.default": "默认值", + "mcp.screenerNotePrefix": "这些工具与", + "mcp.screenerNoteLinkText": "Longbridge 股票筛选器", + "mcp.screenerNoteSuffix": "对应——在编写提示词前先试用,有助于理解数据模型。", "api.section.authorizations": "授权", "api.section.pathParams": "路径参数", "api.section.queryParams": "查询参数", @@ -84,7 +87,7 @@ "footer.feedback": "意见反馈", "footer.terms": "服务条款", "footer.privacy": "隐私政策", - "footer.agreements": "协议与免责声明", + "footer.risk": "风险披露", "footer.download": "下载应用", "footer.statusPage": "服务状态", "footer.about": "关于我们", diff --git a/docs/.vitepress/theme/locales/zh-HK.json b/docs/.vitepress/theme/locales/zh-HK.json index d66cf79f..a972915d 100644 --- a/docs/.vitepress/theme/locales/zh-HK.json +++ b/docs/.vitepress/theme/locales/zh-HK.json @@ -7,6 +7,9 @@ "mcp.required": "必填", "mcp.enum": "枚舉值", "mcp.default": "預設值", + "mcp.screenerNotePrefix": "這些工具與", + "mcp.screenerNoteLinkText": "Longbridge 股票篩選器", + "mcp.screenerNoteSuffix": "對應——在撰寫提示詞前先試用,有助於理解資料模型。", "api.section.authorizations": "授權", "api.section.pathParams": "路徑參數", "api.section.queryParams": "查詢參數", @@ -84,7 +87,7 @@ "footer.feedback": "意見反饋", "footer.terms": "服務條款", "footer.privacy": "隱私政策", - "footer.agreements": "協議與免責聲明", + "footer.risk": "風險披露", "footer.download": "下載應用", "footer.statusPage": "服務狀態", "footer.about": "關於我們", diff --git a/docs/en/docs/cli/index.md b/docs/en/docs/cli/index.md index 4c18e093..5a5525b0 100644 --- a/docs/en/docs/cli/index.md +++ b/docs/en/docs/cli/index.md @@ -8,7 +8,7 @@ sidebar_icon: book_open # Longbridge CLI Longbridge CLI (`longbridge`) is an AI-native command-line tool with 130+ commands covering every -Longbridge OpenAPI endpoint — real-time market data, fundamentals, account management, and trading. +Longbridge OpenAPI endpoint — [real-time market data](https://longbridge.com/markets), fundamentals, account management, and trading. Designed for scripting, AI-agent tool-calling, and daily workflows from the terminal. **GitHub:** [longbridge/longbridge-terminal](https://github.com/longbridge/longbridge-terminal) diff --git a/docs/en/docs/mcp.md b/docs/en/docs/mcp.md index cf6fda0a..9d08a388 100644 --- a/docs/en/docs/mcp.md +++ b/docs/en/docs/mcp.md @@ -9,26 +9,25 @@ next: false # Longbridge MCP Service -Longbridge provides a hosted HTTP MCP (Model Context Protocol) service that lets you use Longbridge market data and account capabilities directly from AI coding assistants and chat tools — without managing API keys manually. +Longbridge provides a hosted HTTP MCP service that lets you use [Longbridge market data](https://longbridge.com/markets) and account capabilities directly from AI coding assistants and chat tools — without managing API keys manually. :::tip MCP endpoint - -- Global: `https://mcp.longbridge.com` -- Mainland China: `https://mcp.longbridge.cn` (faster access) - ::: +- Global: `https://openapi.longbridge.com/mcp` +- Mainland China: `https://openapi.longbridge.cn/mcp` (faster access) +::: ## Available capabilities Longbridge MCP exposes 100+ tools across six capability areas. Your client discovers them automatically on connect — no manual configuration. -| Capability | Coverage | -| --------------------------- | ------------------------------------------------------------------------- | -| **Real-time market data** | Quotes, candlesticks, depth, broker queues, trades, intraday capital flow | -| **Fundamentals & research** | Company profiles, dividends, valuations, executive holdings, A/H premium | -| **Derivatives** | Option chains, warrant filters, issuers, warrant quotes | -| **Account & portfolio** | Balances, positions, cash flow, watchlists and groups | -| **Trading** | Place / modify / cancel orders, estimate max purchase quantity | -| **Automation** | Price alerts, scheduled DCA (dollar-cost averaging) plans | +| Capability | Coverage | +| --- | --- | +| **Real-time market data** | Quotes, candlesticks, depth, broker queues, trades, intraday capital flow | +| **Fundamentals & research** | Company profiles, dividends, valuations, executive holdings, A/H premium. Access these insights via [Longbridge AI](https://longbridge.com/hk/longbridge-ai) for a guided experience. | +| **Derivatives** | Option chains, warrant filters, issuers, warrant quotes | +| **Account & portfolio** | Balances, positions, cash flow, watchlists and groups | +| **Trading** | Place / modify / cancel orders, estimate max purchase quantity | +| **Automation** | Price alerts, scheduled DCA (dollar-cost averaging) plans. Try these features in the [Longbridge app](https://longbridge.com/hk/download) first. | Actual tool availability depends on your region, account level, and granted OAuth scopes. @@ -38,61 +37,30 @@ Actual tool availability depends on your region, account level, and granted OAut ## Prerequisites -- An active Longbridge account with onboarding completed, or a paper trading account +- An active [Longbridge account](https://longbridge.com/hk/download) with onboarding completed, or a paper trading account - An AI client that supports MCP OAuth 2.1 (see compatibility note below) ## Client setup > Configuration format may vary across client versions. Treat your client's official MCP documentation as the source of truth. The core parameter you need is the server URL below. -### ChatGPT - -You need to enable [ChatGPT Developer Mode](https://developers.openai.com/api/docs/guides/developer-mode) before you can add Longbridge MCP. - -In ChatGPT, go to [Settings → Apps](https://chatgpt.com/#settings/Connectors) → [Advanced settings → Developer mode](https://chatgpt.com/#settings/Connectors/Advanced) and turn on **Developer mode**. - -![](https://assets.lbctrl.com/uploads/02e8a24a-be0b-49b2-a4eb-9952bc7a4f9b/enable-chatgpt-dev.png) - -Then click **Back** to return to the Apps list, where you can click the **Create app** button to add a new app — this is where you add Longbridge MCP. - -Fill in the form: - -- Name:`Longbridge` -- Description:`Investment market insights` -- Connection (Server URL):`https://mcp.longbridge.com` -- Authentication:OAuth - -Full walkthrough video: - -