longbridge
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLongbridge Developers Platform
Longbridge Developers Platform
Full-stack financial data and trading platform: CLI, Python/Rust SDK, MCP, and LLM integration.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Official docs: https://open.longbridge.com
llms.txt: https://open.longbridge.com/llms.txt
For setup and authentication details, see references/setup.md.
全栈金融数据与交易平台:包含CLI、Python/Rust SDK、MCP以及LLM集成。
响应语言:匹配用户输入语言——简体中文/繁体中文/英文。
关于设置和认证详情,请查看references/setup.md。
Investment Analysis Workflow
投资分析工作流
When the user asks about stock performance, portfolio advice, or market analysis:
- Get live data via CLI — quotes, positions, K-line history, intraday
- Get news/catalysts via CLI — prefer Longbridge first; fall back to WebSearch only if insufficient
- Combine — price action + volume + catalyst → analysis + suggestion
bash
undefined当用户询问股票表现、投资组合建议或市场分析时:
- 通过CLI获取实时数据——报价、持仓、K线历史、日内数据
- 通过CLI获取新闻/催化剂信息——优先使用Longbridge;仅当信息不足时才 fallback 到WebSearch
- 整合分析——价格走势 + 成交量 + 催化剂信息 → 分析结果 + 建议
bash
undefinedMarket data
Market data
longbridge quote SYMBOL.US
longbridge positions # stock positions
longbridge portfolio # P/L, asset distribution, holdings, cash (always pull when user asks about "my portfolio")
longbridge portfolio short-margin # short-selling margin deposit details per position
longbridge kline history SYMBOL.US --start YYYY-MM-DD --end YYYY-MM-DD --period day
longbridge intraday SYMBOL.US
longbridge quote SYMBOL.US
longbridge positions # stock positions
longbridge portfolio # P/L, asset distribution, holdings, cash (always pull when user asks about "my portfolio")
longbridge portfolio short-margin # short-selling margin deposit details per position
longbridge kline history SYMBOL.US --start YYYY-MM-DD --end YYYY-MM-DD --period day
longbridge intraday SYMBOL.US
News & content (prefer these over WebSearch)
News & content (prefer these over WebSearch)
longbridge news SYMBOL.US # latest news articles
longbridge news detail <id> # full article content
longbridge news search "keyword" # keyword search across news articles
longbridge filing SYMBOL.US # regulatory filings list (8-K, 10-Q, 10-K, etc.)
longbridge topic SYMBOL.US # community discussion
longbridge topic search "keyword" # keyword search across community topics
longbridge market-temp # market sentiment index (0–100)
longbridge news SYMBOL.US # latest news articles
longbridge news detail <id> # full article content
longbridge news search "keyword" # keyword search across news articles
longbridge filing SYMBOL.US # regulatory filings list (8-K, 10-Q, 10-K, etc.)
longbridge topic SYMBOL.US # community discussion
longbridge topic search "keyword" # keyword search across community topics
longbridge market-temp # market sentiment index (0–100)
Fundamentals & analysis
Fundamentals & analysis
longbridge financial-statement SYMBOL.US --kind ALL # hierarchical IS/BS/CF with YoY
longbridge financial-report SYMBOL.US --latest # key KPI summary (revenue/EPS/ROE)
longbridge analyst-estimates SYMBOL.US # EPS consensus (high/low/mean/median)
longbridge valuation-rank SYMBOL.US # daily PE/PB/PS industry percentile rank
longbridge financial-statement SYMBOL.US --kind ALL # hierarchical IS/BS/CF with YoY
longbridge financial-report SYMBOL.US --latest # key KPI summary (revenue/EPS/ROE)
longbridge analyst-estimates SYMBOL.US # EPS consensus (high/low/mean/median)
longbridge valuation-rank SYMBOL.US # daily PE/PB/PS industry percentile rank
IPO
IPO
longbridge ipo subscriptions # HK IPOs in subscription stage
longbridge ipo calendar # all upcoming and recent IPOs
longbridge ipo us-subscriptions # US IPOs in subscription stage
longbridge ipo subscriptions # HK IPOs in subscription stage
longbridge ipo calendar # all upcoming and recent IPOs
longbridge ipo us-subscriptions # US IPOs in subscription stage
Account
Account
longbridge assets # full asset overview: cash, buying power, margin, risk level
longbridge statement --help # check subcommands for statement export options
longbridge bank-cards # bank cards linked to the account
longbridge withdrawals # withdrawal history
longbridge deposits # deposit history
longbridge assets # full asset overview: cash, buying power, margin, risk level
longbridge statement --help # check subcommands for statement export options
longbridge bank-cards # bank cards linked to the account
longbridge withdrawals # withdrawal history
longbridge deposits # deposit history
Institutional investors (SEC 13F)
Institutional investors (SEC 13F)
longbridge investors # top active fund managers by AUM
longbridge investors <CIK> # holdings for a specific investor by CIK
longbridge insider-trades SYMBOL.US # SEC Form 4 insider transaction history
For commands with complex flags, always run `longbridge <command> --help` for current options.
Only fall back to WebSearch when Longbridge news is insufficient (e.g., breaking news not yet indexed, macro events unrelated to a specific symbol).
---longbridge investors # top active fund managers by AUM
longbridge investors <CIK> # holdings for a specific investor by CIK
longbridge insider-trades SYMBOL.US # SEC Form 4 insider transaction history
对于带有复杂参数的命令,请始终运行`longbridge <command> --help`以查看当前可用选项。
仅当Longbridge新闻信息不足时才使用WebSearch(例如:尚未收录的突发新闻、与特定标的无关的宏观事件)。
---Choose the Right Tool
选择合适的工具
User wants to... → Use
─────────────────────────────────────────────────────────────────
Quick quote / one-off data lookup CLI
Interactive terminal workflows CLI
Script market data, save to file CLI + jq (or Python SDK)
Loops, conditions, transformations Python SDK (sync)
Async pipelines, concurrent fetches Python SDK (async)
Production service, high throughput Rust SDK
Real-time WebSocket subscription loop SDK (Python or Rust)
Programmatic order strategy SDK
Talk to AI about stocks (no code) MCP (hosted or self-hosted)
Use Cursor/Claude for trading analysis MCP
Add Longbridge API docs to IDE/RAG LLMs.txt / Markdown API用户想要…… → 使用工具
─────────────────────────────────────────────────────────────────
快速报价 / 一次性数据查询 CLI
交互式终端工作流 CLI
编写脚本获取市场数据并保存到文件 CLI + jq (或Python SDK)
循环、条件判断、数据转换 Python SDK(同步)
异步流水线、并发获取数据 Python SDK(异步)
生产服务、高吞吐量 Rust SDK
实时WebSocket订阅循环 SDK(Python或Rust)
程序化订单策略 SDK
无需代码即可与AI讨论股票 MCP(托管或自托管)
使用Cursor/Claude进行交易分析 MCP
将Longbridge API文档添加到IDE/RAG LLMs.txt / Markdown APISymbol Format
代码格式
<CODE>.<MARKET>| Market | Suffix | Examples |
|---|---|---|
| Hong Kong | | |
| United States | | |
| China Shanghai | | |
| China Shenzhen | | |
| Singapore | | |
| Crypto | | |
<CODE>.<MARKET>| 市场 | 后缀 | 示例 |
|---|---|---|
| 香港 | | |
| 美国 | | |
| 中国上海 | | |
| 中国深圳 | | |
| 新加坡 | | |
| 加密货币 | | |
Reference Files
参考文件
CLI (Terminal)
CLI(终端)
- Overview — install, auth, output formats, patterns: references/cli/overview.md
Always use to list available commands, and for specific options and flags. Do not rely on hardcoded documentation — the CLI's built-in help is always up-to-date.
longbridge --helplongbridge <command> --help- 概述 — 安装、认证、输出格式、使用模式:references/cli/overview.md
**请始终使用查看可用命令,使用查看特定命令的选项和参数。**不要依赖硬编码的文档——CLI内置的帮助信息始终是最新的。
longbridge --helplongbridge <command> --helpPython SDK
Python SDK
- Overview — install, Config, auth, HttpClient: references/python-sdk/overview.md
- QuoteContext — all quote methods + subscriptions: references/python-sdk/quote-context.md
- TradeContext — orders, account, executions: references/python-sdk/trade-context.md
- Types & Enums — Period, OrderType, SubType, push types: references/python-sdk/types.md
- 概述 — 安装、配置、认证、HttpClient:references/python-sdk/overview.md
- QuoteContext — 所有报价方法 + 订阅功能:references/python-sdk/quote-context.md
- TradeContext — 订单、账户、成交记录:references/python-sdk/trade-context.md
- 类型与枚举 — 周期、订单类型、订阅类型、推送类型:references/python-sdk/types.md
Rust SDK
Rust SDK
- Overview — Cargo.toml, Config, auth, error handling: references/rust-sdk/overview.md
- QuoteContext — all methods, SubFlags, PushEvent: references/rust-sdk/quote-context.md
- TradeContext — orders, SubmitOrderOptions builder, account: references/rust-sdk/trade-context.md
- Content — news, filings, topics (ContentContext + Python fallback): references/rust-sdk/content.md
- Types & Enums — all Rust enums and structs: references/rust-sdk/types.md
- 概述 — Cargo.toml配置、设置、认证、错误处理:references/rust-sdk/overview.md
- QuoteContext — 所有方法、订阅标记、推送事件:references/rust-sdk/quote-context.md
- TradeContext — 订单、SubmitOrderOptions构建器、账户:references/rust-sdk/trade-context.md
- 内容模块 — 新闻、监管文件、社区话题(ContentContext + Python降级方案):references/rust-sdk/content.md
- 类型与枚举 — 所有Rust枚举和结构体:references/rust-sdk/types.md
AI Integration
AI集成
- MCP — hosted service, self-hosted server, setup & auth: references/mcp.md
- LLMs & Markdown — llms.txt, doc Markdown,
open.longbridge.comlive news/quote pages (longbridge.comsuffix + Accept header), Cursor/IDE integration: references/llm.md.md
Load specific reference files on demand — do not load all at once.
- MCP — 托管服务、自托管服务器、设置与认证:references/mcp.md
- LLMs与Markdown — llms.txt、文档Markdown、
open.longbridge.com实时新闻/报价页面(添加longbridge.com后缀 + Accept请求头)、Cursor/IDE集成:references/llm.md.md
按需加载特定参考文件——不要一次性加载所有文件。
Related skills
相关Skill
The skills below are siblings in the family. If they're installed, defer to them for the listed user intents — they're more specialised and produce better-formatted output. If they're not installed, this skill's own CLI workflow above can handle the same queries with less specialised formatting; the foundation skill remains usable standalone.
longbridge/skills| If the user wants … | Use |
|---|---|
| Live quote / static reference / valuation indices for a single name | |
| Candlestick / intraday chart | |
| Orderbook depth / brokers / tick trades | |
| Capital flow / large-order distribution | |
| Market-level state — open / close, sentiment temperature, calendar | |
| Options / warrants | |
| US overnight-eligible securities catalog / HK broker dictionary | |
| Stock + fund holdings, multi-currency assets, margin ratio, max-buy quantity | |
| Today's / historical orders, executions, cash flow | |
| Read-only watchlist groups | |
| Watchlist mutations (create / rename / add / remove) | |
| Active real-time WebSocket subscription diagnostics | |
| "Is X expensive?" — historical PE / PB percentile, industry context | |
| 5-dimension fundamentals (KPIs, dividends, consensus, ratings) | |
| 2–5 symbol comparison matrix | |
| Account-level P&L and contribution analysis | |
| Classified news + filings + community sentiment for a single name | |
| Daily incremental briefing across the watchlist | |
| Institutional-grade post-earnings DOCX report (8–12 pages) | |
This skill () stays in scope when the user asks about: SDK syntax (Python / Rust), MCP server setup, LLMs.txt / IDE / RAG integration, raw CLI subcommand discovery, or anything cross-cutting that doesn't map cleanly to one specialised skill.
longbridge以下Skill属于家族的同类Skill。如果已安装这些Skill,针对列出的用户需求应优先使用它们——它们更为专业,输出格式更优。如果未安装,本Skill的CLI工作流也可以处理相同查询,只是输出格式不够专业;本基础Skill可独立使用。
longbridge/skills| 如果用户想要…… | 使用Skill |
|---|---|
| 单个标的的实时报价 / 静态参考 / 估值指标 | |
| K线图 / 日内走势图 | |
| 订单簿深度 / 券商信息 / 逐笔成交 | |
| 资金流向 / 大额订单分布 | |
| 市场整体状态——开盘/收盘、情绪温度、日历 | |
| 期权 / 窝轮 | |
| 美国隔夜可交易证券目录 / 香港券商词典 | |
| 股票+基金持仓、多币种资产、保证金比例、最大可买数量 | |
| 当日/历史订单、成交记录、现金流 | |
| 只读自选股组 | |
| 自选股操作(创建/重命名/添加/移除) | |
| 实时WebSocket订阅诊断 | |
| "X是否高估?"——历史PE/PB百分位、行业背景 | |
| 五维度基本面(关键指标、分红、一致预期、评级) | |
| 2-5个标的对比矩阵 | |
| 账户级盈亏及贡献分析 | |
| 单个标的的分类新闻 + 监管文件 + 社区情绪 | |
| 自选股每日增量简报 | |
| 机构级财报后DOCX报告(8-12页) | |
当用户询问以下内容时,本Skill()适用:SDK语法(Python/Rust)、MCP服务器设置、LLMs.txt/IDE/RAG集成、原始CLI子命令探索,或任何跨领域且无法清晰对应到某一专业Skill的需求。
longbridge