General
Q1: Do I need to open a live account to call Longbridge Developers?
It depends on the account region. For Longbridge HK / SG accounts, the platform provides a paper account — you can develop and debug quote and trading interfaces without opening a real securities account. The paper account supports real-time quotes for HK, US, and A-share markets, as well as basic trading functionality for HK and US stocks and ETFs, making it suitable for API integration and feature verification.
That said, the paper account differs from the live environment in areas such as order matching and cash rules. If you want to experience the platform’s full capabilities, we recommend opening a live account as well.
Q2: How to open a paper account for debugging?
Please visit Development Center to enable the paper account and obtain the corresponding App Key & Secret and Access Token.
To test against a paper account, call the API with that paper account’s own Access Token or OAuth authorization, because the credential determines whether a request reaches the paper or the live account.
The SDKs also offer a paper trading switch (LONGBRIDGE_PAPERTRADING=true, or enable_papertrading when you build a Config). With it on, every request carries the x-papertrading: true header, which asks the server to serve the paper account and to reject a credential that belongs to a live account.
Warning
In short: under OAuth authorization this switch currently does nothing, and an LBUS account has no paper environment to switch to.
It is a server-side check, not a client-side guarantee, and it has two gaps today, neither of them visible in the response:
- LBUS (US) accounts have no paper trading environment — there is no paper account to serve. The server does not reject the request; it answers with the live account’s data, for orders as well as for reads. Nothing in the response says the switch was ignored.
- Under OAuth authorization the server does not apply this check at all, in any region: a live-account token is accepted and reads return live data without an error. Measured on an HK / SG live account: with the switch on, a positions query returns the same live holdings as without it, and no error.
Do not treat this switch as the only thing separating your strategy from your live funds. It is the credential you authorize with that decides which account you reach — confirm that before you trade, and remember that the positions, orders and balances you read back are the live account’s too, so a strategy that only reads is already working from live data.
Q3: Are the trading permissions for simulation debugging the same as for real accounts?
Quote is the same, trading might be different.
Paper accounts and live accounts share the same App Key & Secret, but have different Access Tokens. Quote permissions are associated with the App Key & Secret, while trading permissions are associated with the Access Token. Therefore, under paper accounts and live accounts, quote permissions are the same, but trading permissions are associated with the securities account and may differ.
Q4: Which markets and types of securities are supported for quote and trading in paper account debugging?
Paper accounts are available for Longbridge HK / SG accounts only.
Market: Paper accounts support real-time market data for Hong Kong stocks, US stocks, and A-share markets. For advanced market data such as full US market data and Hong Kong Level2 data, they can be purchased through the online market store and accessed via OpenAPI.
Trading: Paper accounts support trading of Hong Kong and US stocks, ETFs, Hong Kong warrants, and US options.
For live accounts, HK stocks, A-shares, and HK warrants are available to Longbridge HK / SG accounts.
Q5: Interface call frequency limits
Please visit Rate Limit for specific descriptions.
Q6: How are interface call frequency limits applied in the case of multiple accounts?
If a customer holds multiple securities accounts, such as intraday financing or other sub-accounts, the trading interface call frequency limits are calculated and controlled based on different securities accounts, while quote interface calls are not affected by multiple accounts and are uniformly limited.
Q7: Are there additional charges for trading operations through Longbridge Developers?
We do not charge additional fees for accessing market queries, trading, etc., via OpenAPI. For account-related fees such as trading commissions, platform fees, and market permissions, please refer to the information provided by the app and the official website.
Q8: How to disable the permission table output in the console after the SDK connects to the server?
You can set the environment variable LONGBRIDGE_PRINT_QUOTE_PACKAGES to false (or legacy LONGPORT_PRINT_QUOTE_PACKAGES), or set enable_print_quote_packages to false when creating the Config object in the code to disable the permission table output in the console.
Q9: I don’t know how to code. How can I access stock data from the Longbridge Developers platform?
The platform offers two ways to access stock data without writing any code:
CLI (Command-line Tool)
Install the Longbridge CLI and query market data with simple commands — no programming required:
MCP (AI Tool Integration)
If you use AI tools like ChatGPT, Claude, or Cursor, connect the Longbridge MCP service. In ChatGPT, search longbridge in Plugins or open the Longbridge ChatGPT App directly to authorize; in other clients, complete MCP setup and then ask in plain language so the AI can query market data on your behalf.
Both methods require a Longbridge account.