LongPort OpenAPI SDK Base.
LongPort 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 | LongPort OpenAPI for Rust (>= 1.56.1) |
Python | Doc | LongPort OpenAPI for Python 3 (>= 3.7) |
Node.js | Doc | LongPort OpenAPI for Node.js (>= 10) |
Java | Doc | LongPort OpenAPI for Java (>= 1.8) |
C | Doc | LongPort OpenAPI for C (>= C99) |
C++ | Doc | LongPort OpenAPI for C++(>= C++17) |
Go | https://github.com/longportapp/openapi-go | |
MCP | An MCP server implementation for LongPort OpenAPI |
Name | Description |
---|---|
LONGPORT_LANGUAGE | Language identifier, zh-CN , zh-HK or en (Default: en ) |
LONGPORT_APP_KEY | App key |
LONGPORT_APP_SECRET | App secret |
LONGPORT_ACCESS_TOKEN | Access token |
LONGPORT_HTTP_URL | HTTP endpoint url (Default: https://openapi.longportapp.com ) |
LONGPORT_QUOTE_WS_URL | Quote websocket endpoint url (Default: wss://openapi-quote.longportapp.com/v2 ) |
LONGPORT_TRADE_WS_URL | Trade websocket endpoint url (Default: wss://openapi-trade.longportapp.com/v2 ) |
LONGPORT_ENABLE_OVERNIGHT | Enable overnight quote, true or false (Default: false ) |
LONGPORT_PUSH_CANDLESTICK_MODE | realtime or confirmed (Default: realtime ) |
LONGPORT_PRINT_QUOTE_PACKAGES | Print quote packages when connected, true or false (Default: true ) |
LONGPORT_LOG_PATH | Set the path of the log files (Default: no logs ) |
https://longportapp.github.io/openapi
Licensed under either of
No configuration available
This service may require manual configuration, please check the details on the left
Related projects feature coming soon
Will recommend related projects based on sub-categories