Release Notes
v0.22.0
- New
shareholder --top— Top-20 major shareholders (institutions, individuals, insiders) with multi-period comparison;--object-id <id>for single shareholder holding history and trade details - Extended
short-positions— Added HK market support (.HKsuffix auto-routes to HKEX short-position data) - New
short-trades— Daily short sale volume (US: FINRA/NASDAQ; HK: HKEX disclosure data) - New
compare— Multi-stock valuation comparison (PE/PB/PS/market-cap/close); server auto-selects peers when no comparison symbols given - New
top-movers— Stocks whose price movement exceeds the 20-day standard deviation, with correlated news; supports--market,--sort time|change|hot - New
screenercommand group — Stock screener:strategies(recommended/saved),search --strategy-id <id>or--filter key:min:max,indicatorsto list available filters - New
rank— Popularity leaderboard; list all categories without--key, or pass--key <key>for a specific ranking (e.g.ib_hot_all-us) - MCP server updated with the same new tools
v0.21.0
- New:
business-segments— revenue breakdown by business segment, current period or historical trend - New:
industry-rank— industry ranking by market (US/HK/CN/SG) and indicator; counter_id output feeds directly intoindustry-peers - New:
industry-peers— hierarchical sub-sector tree with stock count, daily change, and YTD change per node - New:
financial-report snapshot— AI earnings summary with beat/miss analysis vs consensus estimates and upcoming peer earnings dates - New:
institution-rating --views— month-by-month buy/hold/sell distribution timeline
v0.20.3
- Breaking:
analyst-estimatesremoved — command has been removed; the same data is available viaconsensus(EPS and revenue estimates) - Fix: HK symbol leading zeros — inputs like
00700.HKor09988.HKnow correctly resolve to700.HK/9988.HK;operatingupdated to reflect HK-only data coverage - Fix:
ipo detail— auto-detects market from symbol suffix (SUJA.US→ US,700.HK→ HK), so--marketis no longer required; cleaner error message when no IPO data is found; Payment Deadline formatted as RFC 3339
v0.20.2
- Fix:
institution-rating --history— restructured as a proper table with logical column ordering; timestamps formatted asYYYY-MM-DD; price targets rounded to 2 decimal places;evaluate_historycapped to 20 most recent records - Fix: IPO date display —
ipo listed,ipo wait-listing,ipo calendar,ipo us-wait-listingnow show correct dates (e.g.2026-05-11) instead of a bogus 1970 date
v0.20.0
ipocommand group — comprehensive IPO tools:subscriptions,wait-listing,listed,calendar,detail,orders,profit-lossfor HK market;us-subscriptions,us-wait-listing,us-listedfor US market;orders detail <id>for full order detailfinancial-statement— detailed, hierarchical financial statements (income statement, balance sheet, cash flow) with full line-item breakdown and YoY comparison; supports--kind IS/BS/CF/ALLand--report af/saf/qf/cumulfinancial-report --latest— new flag to fetch the latest report summary (key indicators: revenue, net profit, EPS, ROE, total assets) without fetching the full statementvaluation-rank— daily PE/PB/PS industry percentile rank over a date range, showingrank/totalfor each metricinstitution-rating --history/--industry-rank— new flags:--historyshows how analyst ratings and price targets have changed over time;--industry-rankranks all stocks in the same industry by analyst coveragenews search/topic search— keyword search across news articles and community topicsbank-cards— list bank cards linked to your accountwithdrawals/deposits— view withdrawal and deposit history with date formatting and optional state/currency filtersportfolio short-margin— short-selling margin deposit details per position- Fix: paper-trading account channel —
auth statusand quote mall QR links now correctly reflect the account channel for paper-trading accounts (lb_papertrading), resolved from the access token JWT rather than hardcoded
v0.19.2
finance-calendarrevamp — restructured into subcommands (report,dividend,split,ipo,macrodata,closed); new--filter watchlist|positionsscopes events to your watchlist or holdingsquote— new "Last Chg%" column showing price change vs previous closecorp-action— defaults to 30 items; add--allto retrieve all recordsupdate --force— skip version check and force reinstall; auto-retries withsudoon permission error- TUI — full mouse support; chart type toggle (line / candlestick) in stock detail view
v0.19.0
- TUI: History orders tab — press
Tabon the Orders page to switch between Today and History; History mode fetches the last 30 days by default; pressfto open a date-range filter popup - TUI: Cancel and modify orders — press
cto cancel ormto modify an active today order directly from the orders table; a confirmation step is shown before submitting auth statusquote packages — displays a formatted table of subscribed quote packages (market, name, validity period) and prints a QR code to open the quote mall in the Longbridge Appcalc-indexfield aliases — short aliases for common fields:iv(implied_volatility),oi(open_interest),vol(volume),mktcap(total_market_value),exp(expiry_date),strike(strike_price);--helpnow groups fields into General and Options/Warrants sectionsquant runcommand — run a quant indicator script server-side against historical K-line data; supply the script inline with--scriptor pipe via stdin; outputs computed plot values as JSONupdaterelease notes — only the 10 most recent entries are shown afterlongbridge updatecompletes;sudois suggested when the binary lives in/usr/local/bin
v0.18.0
- TUI: Orders page — interactive orders table with trading shortcuts and an order entry dialog for placing trades without leaving the terminal
dividend --page/--year— paginate through large dividend histories and filter by year; fetches 50 records per page (up from 30)
v0.17.4
--limitalias for--count— all commands that accept--countnow also accept--limitas an alias, improving compatibility for AI agent tool-calling- Fix: Unix self-update ETXTBUSY —
longbridge updateno longer fails with "Text file busy" on Unix; the update now uses a staged temp file and atomic rename instead of writing directly to the running binary
v0.17.3
- Fix: token refresh hang — when the access token expired on a flaky network, the CLI no longer waits 5 minutes before failing; it now fails immediately with a clear error and preserves the token file for the next retry
auth statusaccuracy — now shows three states:valid(green),refresh pending(yellow, access token expired but refresh token valid — next command auto-refreshes with no user action needed),expired(red, re-login required); previouslyrefresh pendingwas incorrectly shown asexpired- Fix:
--auth-codelogin — browser OAuth flow now triggers correctly when no token file exists - Fix: Windows browser launch — OAuth URLs containing
¶meters no longer get truncated on Windows; switched to theopencrate for cross-platform browser launching
v0.17.1
completioncommand — generate shell tab-completion scripts for bash, zsh, fish, elvish, and powershell; redirect stdout to the appropriate file then reload your shell to activate (e.g.longbridge completion zsh > ~/.zfunc/_longbridge)- Sets
User-Agent: longbridge-cli/<version>on all HTTP and WebSocket requests - Adds
x-cli-cmdrequest header identifying the active subcommand on every API call
v0.17.0
dcacommand — recurring investment plans: create, update, pause, resume, stop, view trade history, stats summary, check symbol eligibility, and calculate next trade date; HK/SG accounts must agree to Terms and Conditions before creating a plan (--agree-termsto skip the interactive prompt)sharelistcommand — community stock lists: list own and subscribed sharelists, browse trending lists (popular), create/delete sharelists, and add/remove/reorder constituent stocksshort-positions— US stock short selling data: short ratio, short shares, average daily volume, days-to-cover, and close price; updated bi-monthly by FINRA;--count1–100option volume— real-time call/put volume snapshot with put/call ratio;dailysubcommand for historical call/put volume and open interestoption chain— without--datenow returns expiry dates only; pass--dateto see strikes for a specific expiryprofit-analysis— added--start/--enddate filtering for the summary command; Simple Yield and TWR now shown as percentages; breakdown renamed from "Stock P&L Breakdown" to "P&L Breakdown" (includes funds and MMF)
v0.16.3
authsubcommand group —longbridge auth login,auth logout,auth status;auth statusshows token validity, expiry, account info, and quote level locally without networkalert enable/alert disable— toggle price alerts on/off without deleting them- Fix: US index symbols —
.DJI.US,.VIX.USand other US index symbols now parse correctly; US indexes require a leading dot (e.g..DJI.US, notDJI.US) - "Did you mean?" hints — when a query returns no data, the CLI suggests the correct symbol format: missing market suffix →
TSLA.US/700.HK; missing leading dot →.DJI.US
v0.16.1
Enhancements
option quote— now returns all fields from the OptionQuote API (addedtimestamp,trade_status,open_interest,historical_volatility,contract_multiplier,contract_size,direction,underlying_symbol); JSON output uses proper typed values instead of table-column stringscalc-index— Theta, Vega, and Rho values are now normalized (÷100) to standard per-share conventions; auto-detects option symbols and switches to Greeks default fields when stock defaults return emptycapital— improved argument handlingmarket-status— fixed incorrecttrade_statusmapping (105 = afternoon trading session); JSON output now returns human-readable market and status labels instead of raw API codes- Parameter standardization:
--adjust none/forward(wasno_adjust/forward_adjust),--tif day/gtc/gtd(wasDay/GoodTilCanceled/GoodTilDate),--format tableas default name (alias:pretty),finance-calendar --start/--end(was--date/--end-date),statement --start-datenow acceptsYYYY-MM-DDformat - TUI: fixed watchlist sort jumping and made scrollbar more subtle
v0.16.0
21 new commands covering company fundamentals, market data, and account features.
New: Company & Fundamentals
company— company overview (founding date, employees, IPO price, address)executive— company executives and key personnelindustry-valuation— industry valuation comparison with peers (PE/PB/EPS/DY);distsubcommand for percentile rankingoperating— operating reviews: financial indicators table + management reviewcorp-action— corporate actions (splits, dividends, rights, etc.)invest-relation— investment relations (subsidiary/parent companies)
New: Market & Quotes
constituent— index/ETF constituent stocks with sorting + rise/fall statsmarket-status— market open/close status for each exchangebroker-holding— broker holding positions for HK stocks (top/detail/daily)ah-premium— A/H premium ratio kline and intraday data for dual-listed stockstrade-stats— trade statistics (price distribution by volume)anomaly— quote anomalies / unusual market movements
New: Account
alert— price alerts (list/add/delete)profit-analysis— P&L summary + per-stock breakdown;detailfor individual stock P&L with transaction flows;by-marketfor market-filtered view
Enhancements
update— cross-platform self-update with Windows support and CDN acceleration;--release-notesto view changelog; auto-shows release notes on version changeintraday --date— retrieve historical intraday data for a past date- TUI: press
/to search watchlist or type a symbol to jump directly to any stock BROWSERenv var support for custom browser selection during login
v0.15.0
- New:
portfoliocommand — total P/L, asset distribution by market (US/HK/CN/SG/Cash), holdings, and cash balances - New:
investorscommand — SEC 13F-based active fund manager rankings; view any investor's holdings by CIK with live prices - New:
insider-trades— SEC Form 4 insider transaction history for any symbol - New:
watchlist pin/unpin— pin securities to the top of a watchlist group - Enhanced:
assets— renamed frombalance; now shows full asset overview: net assets, buying power, margin, risk level, and per-currency cash breakdown
v0.14.2
- New:
--langglobal flag — set content language (zh-CN,zh-HK,en) for all commands; falls back to systemLANGenv var thenen
v0.14.1
- New: CN region login —
longbridge auth loginnow supports China region routing - New:
-vflag — show version without entering the full command
v0.14.0
- New: Device auth login —
longbridge auth loginnow uses OAuth device flow; displays a URL and code to authorize on any device, works in SSH and headless environments;--headlessflag removed - New: Order enhancements — trailing stop and AO order types;
--expire-date,--outside-rth,--remarkadded to order commands - Fix: Linux segfault — prebuilt Linux binary now uses musl to fix crash on some distributions
v0.13.0
- New: Fundamentals & analysis commands —
financial-report,valuation,forecast-eps,consensus,institution-rating,shareholder,fund-holder,dividend,finance-calendar,exchange-rate - Breaking: command restructure — 19 flat commands moved into subcommand trees (e.g.
news-detail→news detail,kline-history→kline history,warrant-list→warrant list) - CN region support — set
LONGBRIDGE_REGION=cnto route through the China endpoint
v0.12.0
- New:
statementcommands — list and export daily/monthly account statements - TUI — fixed
qquit; added news list and detail views inside watchlist
Full changelog: github.com/longbridge/longbridge-terminal/releases