L
longbridge/openapi
Longbridge OpenAPI SDK Base
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
We have neither an install command nor a public remote endpoint from this repository, so we do not print a config. A made-up one is worse than none. How each client wires MCP up →
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
# 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
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/longbridge-openapi/)
- Source
- awesome · https://github.com/longbridge/openapi
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.