L
longbridge/openapi
Longbridge OpenAPI SDK Base
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Longbridge OpenAPI SDK
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Longbridge OpenAPI provides programmatic quote trading interfaces for investors with research and development capabilities and assists them to build trading or quote strategy analysis tools based on their own investment strategies. The functions fall into the following categories:
Trading - Create, amend, cancel orders, query today’s/past orders and transaction details, etc.
Quotes - Real-time quotes, acquisition of historical quotes, etc.
Portfolio - Real-time query of the account assets, positions, funds
Real-time subscription - Provides real-time quotes and push notifications for order status changes
This repo contains the following main components:
| Name | Document | Description |
| Rust | Doc | Longbridge OpenAPI for Rust (>= 1.89.0) |
| Python | Doc | Longbridge OpenAPI for Python 3 (>= 3.8) |
| Node.js | Doc | Longbridge OpenAPI for Node.js (>= 10) |
| Java | Doc | Longbridge OpenAPI for Java (>= 11) |
| C | Doc | Longbridge OpenAPI for C (>= C99) |
| C++ | Doc | Longbridge OpenAPI for C++(>= C++17) |
| Go | | https://github.com/longbridge/openapi-go |
| MCP | | An MCP server implementation for Longbridge OpenAPI |
## Context Types
| Context | Description |
| QuoteContext | Real-time quotes, candlesticks, options, warrants, watchlists, push subscriptions |
| TradeContext | Orders, positions, account balance, executions, cash flow |
| AssetContext | Account statement download |
| ContentContext | News, community topics |
| FundamentalContext | Financial reports, analyst ratings, dividends, valuation, company overview, shareholders |
| MarketContext | Market status, broker holdings, A/H premium, trade statistics, anomaly alerts, index constituents |
| CalendarContext | Financial calendar (earnings, dividends, splits, IPOs, macro data, market closures) |
| PortfolioContext | Exchange rates, portfolio P&L analysis |
| AlertContext | Price alert management (add/enable/disable/delete) |
| DCAContext | Dollar-cost averaging plan management |
| SharelistContext | Community sharelist management |
## Quickstart
Pick a language SDK from the table above and follow its README for install and first request. Full reference docs: https://longbridge.github.io/openapi
## SDK Documentation
https://longbridge.github.io/openapi
## Troubleshooting
Environment variables not taking effect
macOS/Linux: export ... only affects the current shell session.
Windows: setx ... requires opening a new terminal/session to take effect.
Authentication errors (401/403)
Verify LONGBRIDGEAPPKEY, LONGBRIDGEAPPSECRET, LONGBRIDGEACCESSTOKEN are correct and not expired.
Ensure your OpenAPI app has the required permissions.
Network / connection errors
Check firewall/proxy rules for HTTPS/WSS.
If you use a custom endpoint, set LONGBRIDGEHTTPURL, LONGBRIDGEQUOTEWSURL, LONGBRIDGETRADEWSURL.
Quote subscription exits immediately
Keep the process running (event loop / sleep / blocking receive loop), otherwise you will not see push events.
Debugging
Trading - Create, amend, cancel orders, query today’s/past orders and transaction details, etc.
Quotes - Real-time quotes, acquisition of historical quotes, etc.
Portfolio - Real-time query of the account assets, positions, funds
Real-time subscription - Provides real-time quotes and push notifications for order status changes
This repo contains the following main components:
| Name | Document | Description |
| Rust | Doc | Longbridge OpenAPI for Rust (>= 1.89.0) |
| Python | Doc | Longbridge OpenAPI for Python 3 (>= 3.8) |
| Node.js | Doc | Longbridge OpenAPI for Node.js (>= 10) |
| Java | Doc | Longbridge OpenAPI for Java (>= 11) |
| C | Doc | Longbridge OpenAPI for C (>= C99) |
| C++ | Doc | Longbridge OpenAPI for C++(>= C++17) |
| Go | | https://github.com/longbridge/openapi-go |
| MCP | | An MCP server implementation for Longbridge OpenAPI |
## Context Types
| Context | Description |
| QuoteContext | Real-time quotes, candlesticks, options, warrants, watchlists, push subscriptions |
| TradeContext | Orders, positions, account balance, executions, cash flow |
| AssetContext | Account statement download |
| ContentContext | News, community topics |
| FundamentalContext | Financial reports, analyst ratings, dividends, valuation, company overview, shareholders |
| MarketContext | Market status, broker holdings, A/H premium, trade statistics, anomaly alerts, index constituents |
| CalendarContext | Financial calendar (earnings, dividends, splits, IPOs, macro data, market closures) |
| PortfolioContext | Exchange rates, portfolio P&L analysis |
| AlertContext | Price alert management (add/enable/disable/delete) |
| DCAContext | Dollar-cost averaging plan management |
| SharelistContext | Community sharelist management |
## Quickstart
Pick a language SDK from the table above and follow its README for install and first request. Full reference docs: https://longbridge.github.io/openapi
## SDK Documentation
https://longbridge.github.io/openapi
## Troubleshooting
Environment variables not taking effect
macOS/Linux: export ... only affects the current shell session.
Windows: setx ... requires opening a new terminal/session to take effect.
Authentication errors (401/403)
Verify LONGBRIDGEAPPKEY, LONGBRIDGEAPPSECRET, LONGBRIDGEACCESSTOKEN are correct and not expired.
Ensure your OpenAPI app has the required permissions.
Network / connection errors
Check firewall/proxy rules for HTTPS/WSS.
If you use a custom endpoint, set LONGBRIDGEHTTPURL, LONGBRIDGEQUOTEWSURL, LONGBRIDGETRADEWSURL.
Quote subscription exits immediately
Keep the process running (event loop / sleep / blocking receive loop), otherwise you will not see push events.
Debugging
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/longbridge-openapi/)
- 来源
- awesome · https://github.com/longbridge/openapi
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。