loading…
Search for a command to run...
loading…
🐍 ☁️ - LongPort OpenAPI provides real-time stock market data, provides AI access analysis and trading capabilities through MCP.
🐍 ☁️ - LongPort OpenAPI provides real-time stock market data, provides AI access analysis and trading capabilities through MCP.
Go project version PyPI version npm version Maven Central
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:
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 |
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
https://longbridge.github.io/openapi
export ... only affects the current shell session.setx ... requires opening a new terminal/session to take effect.LONGBRIDGE_APP_KEY, LONGBRIDGE_APP_SECRET, LONGBRIDGE_ACCESS_TOKEN are correct and not expired.LONGBRIDGE_HTTP_URL, LONGBRIDGE_QUOTE_WS_URL, LONGBRIDGE_TRADE_WS_URL.LONGBRIDGE_LOG_PATH.LONGBRIDGE_PRINT_QUOTE_PACKAGES=true to confirm opened quote packages.If you're not sure whether your environment / credentials are correct, start with the built-in HTTP client examples.
Python:
python examples/python/http_client.py
Node.js:
node examples/nodejs/http_client.js
Rust:
cargo run --manifest-path examples/rust/Cargo.toml -p http_client
Java (from the example module directory):
cd examples/java/http_client
mvn -q -DskipTests package
mvn -q -DskipTests exec:java
C/C++:
examples/c/http_client/main.c and examples/cpp/http_client/main.cpp.Expected results:
LONGBRIDGE_APP_KEY, LONGBRIDGE_APP_SECRET, LONGBRIDGE_ACCESS_TOKEN.Licensed under either of
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"longportapp-openapi": {
"command": "npx",
"args": []
}
}
}Payments, customers, subscriptions
110+ tools for AI agents spanning social media, finance, gaming, music, AU-specific services, and utilities. Zero-config local tools plus platform connectors. n
Unified API hub for AI agents with 56+ tools across travel (Amadeus, Sabre), prediction markets (Polymarket), crypto, and weather. Pay-per-call via x402 micropa
Deploy live HTTPS websites in seconds. Instant subdomains ($1 USDC) or custom .xyz domains ($10 USDC) on Base chain. Templates for crypto tokens and AI agent pr