Longbridge Developers is the official developer platform for Longbridge — providing programmatic access to real-time market data, trading, account management, and AI integrations across HK, US, and CN markets.
/
├── docs/ # Site content and VitePress config
│ ├── .vitepress/ # Theme, components, markdown plugins, locale configs
│ ├── en/ # English content (root locale)
│ ├── zh-CN/ # Simplified Chinese content
│ └── zh-HK/ # Traditional Chinese content
├── openapi/ # Submodule: OpenAPI spec + SDK source (openapi, Python, Rust, etc.)
├── openapi-go/ # Submodule: Go SDK
├── longbridge-terminal/ # Submodule: CLI binary source (longbridge)
├── skills/longbridge/ # AI Skill — knowledge base for AI agents
├── scripts/ # Build scripts (llms.txt generation, markdown normalization)
├── openapi.yaml # Canonical API specification (source of truth for API Reference)
└── CONTRIBUTING.md # Contribution guidelines for AI agents and humans
- Automated trading strategies and order management
- Real-time quote dashboards and data pipelines
- Portfolio trackers and risk monitoring tools
- AI agents with live market data and trading capabilities
| Method | Best for |
|---|---|
| SDK | Python, Rust, Node.js, Go, Java, C++ apps |
| HTTP / WebSocket API | Any language, custom integrations |
CLI (longbridge) |
Terminal workflows, scripting, AI tool-calling |
| MCP | AI coding assistants (Cursor, Claude, ChatGPT, etc.) |
| Skill | Give any AI direct knowledge of Longbridge APIs |
Download the Longbridge App and complete account onboarding.
Log in to open.longbridge.com, complete developer verification, and obtain your API token.
CLI — fastest way to get started:
brew install --cask longbridge/tap/longbridge-terminal
longbridge login
longbridge quote TSLA.US NVDA.US 700.HKPython SDK:
pip install longbridgeMCP for AI assistants — add to your MCP client config:
{
"mcpServers": {
"longbridge": {
"url": "https://openapi.longbridge.com/mcp"
}
}
}AI Skill — give your AI full knowledge of Longbridge APIs:
npx skills add longbridge/developers -g -y| Market | Instruments |
|---|---|
| Hong Kong | Equities, ETFs, Warrants, CBBCs, Hang Seng Index |
| United States | Stocks, ETFs, OPRA Options, Nasdaq Index |
| China A-share | Stocks, ETFs, Index |
- Getting Started — https://open.longbridge.com/docs/getting-started
- API Reference — https://open.longbridge.com/api
- SDK Reference — https://open.longbridge.com/sdk
- CLI Reference — https://open.longbridge.com/cli
- MCP Setup — https://open.longbridge.com/mcp
- LLM / AI Integration — https://open.longbridge.com/llm
- Changelog — https://open.longbridge.com/docs/changelog
All documentation pages are available as Markdown by appending .md to any URL:
https://open.longbridge.com/docs/getting-started.md
https://open.longbridge.com/docs/quote/pull/static.md
A machine-readable index is available at:
https://open.longbridge.com/llms.txt
OpenAPI access is free for Longbridge Integrated Account holders. No additional fees for activating or using the API. Standard brokerage transaction fees apply to trades.
git clone --recurse-submodules https://github.com/longbridge/developers.git
cd developers
bun install
bun run devIf you already cloned without --recurse-submodules:
git submodule update --init --recursive
bun run devThe dev server starts at http://localhost:5173 and connects to the canary API. Use bun run dev:prod to connect to the production API instead.
See CONTRIBUTING.md for full contribution guidelines.