greeksoup/ docs
Brokers

Longbridge

Hong Kong and Singapore. An app key, an app secret and an access token from Longbridge's developer page, free for its clients. The token lasts ninety days.

MarketHong Kong; the home screens take the Hong Kong shape from the free feed (HKEX hours, the Hang Seng, Hong Kong dollars) You pasteApp key, app secret, access token; the server address for a mainland account Daily loginNone; a new access token every ninety days The desk showsHoldings and cash, priced by the desk; the watchlist from the free feed

Where the keys come from

On Longbridge's developer page switch OpenAPI on for the account, then copy the app key, the app secret and the access token. Longbridge issues the token for ninety days. It tells you when the token is near the end, and the new one goes in the same box.

Every request is signed on your computer with the secret, in the scheme Longbridge publishes, so the secret itself never travels.

On Settings

Pick Longbridge · Hong Kong and Singapore, paste the three, and click Save and connect. Leave Server address empty for openapi.longbridge.com; mainland accounts use openapi.longbridge.cn. "Longbridge did not accept these keys" often means the ninety days have run out, and a new token comes from the developer page.

What Desk · Home shows

Every position with quantity and average cost, and cash from the account read. Longbridge's positions carry no price, so the desk marks every line from Yahoo through the share's own symbol (a Hong Kong code as its .HK symbol, a Singapore one as .SI) and values the account live from that.

Live prices

Longbridge serves live prices through its own quote connection rather than a plain web request, so the desk prices your watchlist from the free feed for now. Your agent can add that quote connection from Longbridge's documentation, and Longbridge includes US real-time prices with OpenAPI at no extra charge.

What it does not show

No live prices from the broker, no futures, no margin bar, no options tape through this read. Nothing places an order.