longbridge

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Longbridge 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.
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:
  1. Get live data via CLI — quotes, positions, K-line history, intraday
  2. Get news/catalysts via CLI — prefer Longbridge first; fall back to WebSearch only if insufficient
  3. Combine — price action + volume + catalyst → analysis + suggestion
bash
undefined
当用户询问股票表现、投资组合建议或市场分析时:
  1. 通过CLI获取实时数据——报价、持仓、K线历史、日内数据
  2. 通过CLI获取新闻/催化剂信息——优先使用Longbridge;仅当信息不足时才 fallback 到WebSearch
  3. 整合分析——价格走势 + 成交量 + 催化剂信息 → 分析结果 + 建议
bash
undefined

Market 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 API

Symbol Format

代码格式

<CODE>.<MARKET>
— applies to all tools.
MarketSuffixExamples
Hong Kong
HK
700.HK
,
9988.HK
,
2318.HK
United States
US
TSLA.US
,
AAPL.US
,
NVDA.US
China Shanghai
SH
600519.SH
,
000001.SH
China Shenzhen
SZ
000568.SZ
,
300750.SZ
Singapore
SG
D05.SG
,
U11.SG
Crypto
HAS
BTCUSD.HAS
,
ETHUSD.HAS
<CODE>.<MARKET>
— 适用于所有工具。
市场后缀示例
香港
HK
700.HK
,
9988.HK
,
2318.HK
美国
US
TSLA.US
,
AAPL.US
,
NVDA.US
中国上海
SH
600519.SH
,
000001.SH
中国深圳
SZ
000568.SZ
,
300750.SZ
新加坡
SG
D05.SG
,
U11.SG
加密货币
HAS
BTCUSD.HAS
,
ETHUSD.HAS

Reference Files

参考文件

CLI (Terminal)

CLI(终端)

  • Overview — install, auth, output formats, patterns: references/cli/overview.md
Always use
longbridge --help
to list available commands, and
longbridge <command> --help
for specific options and flags.
Do not rely on hardcoded documentation — the CLI's built-in help is always up-to-date.
  • 概述 — 安装、认证、输出格式、使用模式:references/cli/overview.md
**请始终使用
longbridge --help
查看可用命令,使用
longbridge <command> --help
查看特定命令的选项和参数。**不要依赖硬编码的文档——CLI内置的帮助信息始终是最新的。

Python 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,
    open.longbridge.com
    doc Markdown,
    longbridge.com
    live news/quote pages (
    .md
    suffix + Accept header), Cursor/IDE integration: references/llm.md
Load specific reference files on demand — do not load all at once.

  • MCP — 托管服务、自托管服务器、设置与认证:references/mcp.md
  • LLMs与Markdown — llms.txt、
    open.longbridge.com
    文档Markdown、
    longbridge.com
    实时新闻/报价页面(添加
    .md
    后缀 + Accept请求头)、Cursor/IDE集成:references/llm.md
按需加载特定参考文件——不要一次性加载所有文件。

Related skills

相关Skill

The skills below are siblings in the
longbridge/skills
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.
If the user wants …Use
Live quote / static reference / valuation indices for a single name
longbridge-quote
Candlestick / intraday chart
longbridge-kline
Orderbook depth / brokers / tick trades
longbridge-depth
Capital flow / large-order distribution
longbridge-capital-flow
Market-level state — open / close, sentiment temperature, calendar
longbridge-market-temp
Options / warrants
longbridge-derivatives
US overnight-eligible securities catalog / HK broker dictionary
longbridge-security-list
Stock + fund holdings, multi-currency assets, margin ratio, max-buy quantity
longbridge-positions
Today's / historical orders, executions, cash flow
longbridge-orders
Read-only watchlist groups
longbridge-watchlist
Watchlist mutations (create / rename / add / remove)
longbridge-watchlist-admin
Active real-time WebSocket subscription diagnostics
longbridge-subscriptions
"Is X expensive?" — historical PE / PB percentile, industry context
longbridge-valuation
5-dimension fundamentals (KPIs, dividends, consensus, ratings)
longbridge-fundamental
2–5 symbol comparison matrix
longbridge-peer-comparison
Account-level P&L and contribution analysis
longbridge-portfolio
Classified news + filings + community sentiment for a single name
longbridge-news
Daily incremental briefing across the watchlist
longbridge-catalyst-radar
Institutional-grade post-earnings DOCX report (8–12 pages)
longbridge-earnings
This skill (
longbridge
) 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.
以下Skill属于
longbridge/skills
家族的同类Skill。如果已安装这些Skill,针对列出的用户需求应优先使用它们——它们更为专业,输出格式更优。如果未安装,本Skill的CLI工作流也可以处理相同查询,只是输出格式不够专业;本基础Skill可独立使用。
如果用户想要……使用Skill
单个标的的实时报价 / 静态参考 / 估值指标
longbridge-quote
K线图 / 日内走势图
longbridge-kline
订单簿深度 / 券商信息 / 逐笔成交
longbridge-depth
资金流向 / 大额订单分布
longbridge-capital-flow
市场整体状态——开盘/收盘、情绪温度、日历
longbridge-market-temp
期权 / 窝轮
longbridge-derivatives
美国隔夜可交易证券目录 / 香港券商词典
longbridge-security-list
股票+基金持仓、多币种资产、保证金比例、最大可买数量
longbridge-positions
当日/历史订单、成交记录、现金流
longbridge-orders
只读自选股组
longbridge-watchlist
自选股操作(创建/重命名/添加/移除)
longbridge-watchlist-admin
实时WebSocket订阅诊断
longbridge-subscriptions
"X是否高估?"——历史PE/PB百分位、行业背景
longbridge-valuation
五维度基本面(关键指标、分红、一致预期、评级)
longbridge-fundamental
2-5个标的对比矩阵
longbridge-peer-comparison
账户级盈亏及贡献分析
longbridge-portfolio
单个标的的分类新闻 + 监管文件 + 社区情绪
longbridge-news
自选股每日增量简报
longbridge-catalyst-radar
机构级财报后DOCX报告(8-12页)
longbridge-earnings
当用户询问以下内容时,本Skill(
longbridge
)适用:SDK语法(Python/Rust)、MCP服务器设置、LLMs.txt/IDE/RAG集成、原始CLI子命令探索,或任何跨领域且无法清晰对应到某一专业Skill的需求。