Release Notes
v0.28.0
- Chat with LongbridgeAI in the terminal — the new
longbridge aicommand opens a full-screen chat: answers stream in as Markdown with terminal-drawn charts, box-drawn tables, syntax-highlighted code and live quote cards. A title-bar ticker follows every security the conversation mentions (click one for a full quote card), slash commands cover/new/retry/copy/export/quote/resume/settings/agent/login, and conversations are stored on your account — a chat started in the terminal continues wherever else you use LongbridgeAI - New
servecommand — embed the Longbridge API in your own app —longbridge servekeeps one authenticated process alive and speaks JSON-RPC 2.0 over stdin/stdout: everyquote.*andtrade.*method,api.get/api.postpassthrough to any REST endpoint, andquote.subscribefor live quote / depth / broker / trade pushes. Desktop widgets, bar plugins and dashboards stop paying region detection, token load and WebSocket connect on every poll — and can see the ticks between polls. Payloads are the raw OpenAPI shapes, not the CLI's--format jsonrendering - New
gridcommand group — grid trading —longbridge gridlists grid orders (--ids,--symbol,--status), plussubmit,replace,detail,triggers,cancel,suspend,restart,infoandquestionnaire.submit/replaceshare one rule flag set: price range and base price,--trigger-type percent|spreadwith--trigger-up/--trigger-down, per-side quantities and order types, TIF, and what happens when the price leaves the range — with--dry-runto validate and print the rule without submitting it - Reworked TUI chrome — primary tabs are pills, and the shortcut hints no longer overflow: they take the space the tabs leave, shed the least important first, and are clickable (Settings and Help never go). Portfolio and Orders gain a right-hand detail panel that follows the selection; the stock screen drops its Quote/News tab strip so the article pane can wrap, scroll and open on longbridge.com, and docks the news list beside the quote panel when both fit. Clicking a shortcut hint now runs the same action its key does, and the footer's index quotes carry click targets that follow the text rather than a fixed third. The settings modal is a real two-column grid, with clickable chips and
←/→stepping values in either direction, and it moves offCtrl+,(which conflicts on some platforms) to, - Fix: intraday charts rendered as a dot texture — the area fill is now shade blocks in the line's own color and the volume bars are solid, instead of braille (which can only set a foreground). Two bugs behind it are fixed too: the ANSI parser read only the first parameter of an SGR escape, dropping any sequence that set more than one attribute; and the chart info bars hardcoded green/red instead of following the up/down color setting — one of them inverted in the default mode
news detailnow returns structured data — the article is read from Longbridge's own content service instead of being scraped off the web page, so title, published time, author and related securities come back as proper fields alongside the Markdown body;--format jsonprints the full item
v0.27.0
- Use LongbridgeAI over ACP — The new
longbridge acpcommand runs LongbridgeAI as an Agent Client Protocol (ACP) compatible agent. You can now look up live market data, analyze company fundamentals, and interpret account positions from compatible client applications; see the ACP guide for setup - New
agentcommands for LongbridgeAI —agent workspaceslists AI workspaces;agent listdiscovers chat-capable agents (--workspace,--name;--allincludes workflow agents);agent chat chatbot "…"holds a conversation over SSE (--streamfor live tokens — the publicchatbotagent is usable by any account), withagent chat chatbot <CHAT_UID> <MSG_ID> "…"for multi-turn follow-ups;agent continue chatbot <CHAT_UID> <MSG_ID>resumes an interrupted run (--answer/--answers-json); andagent --skillprints the agent skill doc for AI harnesses
v0.26.0
- New TUI settings modal (
Ctrl+,) — first setting is up/down colors (red-up vs green-up); applied instantly and remembered across restarts in~/.longbridge/terminal.json - Context-aware shortcut hints and mouse scrolling in the TUI — the top bar now lists only the keys available on the current screen, and the scroll wheel moves the selection in the watchlist / orders / news / portfolio lists
- Refreshed TUI visuals — rounded borders on panels and modals, bold titles and table headers, and a stacked asset-distribution bar on the Portfolio screen; all drawn in the terminal's own palette
- Access point no longer gets stuck on China Mainland — the region is now decided by the country geotest reports rather than by whether it merely responds, and is re-checked every 6 hours, so a client that has left China Mainland stops being routed to
longbridge.cn.checkre-detects on every run, measures both access points and switches to whichever is decisively better; a connection failure against.cnnow explains how to override the region - Fix:
ipo calendarreturned no data — the upstream aggregation endpoint began returning an empty summary for every account; the command is rebuilt on the data sources that still work - Fix: clearer error for US option quotes —
option quotenow explains that the "OPRA US Options" OpenAPI market-data permission is required and links to pricing, instead of surfacing a bare301604 - Fix:
ipo detaildegrades gracefully — timeline, eligibility and holdings are treated as optional enrichment, so the core profile still prints when an auxiliary endpoint is unavailable (nullin JSON, warnings under-v)
v0.25.0
US data-center support —
auth login(device flow and--auth-code) can now authorize US accounts, and every authenticated request routes to the data center matching the token;auth statusshows the active DC regionUS account and fundamentals coverage — US tokens automatically route 14 commands (
positions,order,company,valuation,financial-report,financial-statement,consensus,dividend, etc.) to US-specific endpoints, plus newprofit-analysis realizedandfinancial-report key-metricssubcommandsquant runmoved to the v2 API with Navi support — new--language navi|pineflag (Navi is the default); chart rendering handles both the v1 and v2 payload shapesUS market routing —
company,valuation,financial-report,consensus,dividend,order,positionsauto-route to US APIs for US data-center accountsNew
etf-docscommand — list ETF regulatory documents (prospectus, fact sheets, annual reports) for US ETFs;--limitcontrols how many to returnNew
financial-report key-metricssubcommand — key financial indicators for US stocks; supports--report annual|quarterlyNew
profit-analysis realizedsubcommand — realized P&L by asset category (--category stock|option|crypto); US accounts onlyNew order flags —
--status pending|history|alland--action buy|sellfilter US order history;order detail --attachedfetches child orders
v0.24.0
- New
macrodatacommand — Browse 400+ macrodata indicators across US/HK/CN/EU/JP/SG; list mode with optional--countryfilter, history mode for a specific indicator code with--start/--enddate range;--format jsonfor AI/scripting workflows
v0.23.2
- Local-time date parsing for CLI arguments — date-only and legacy minute-resolution datetime inputs are interpreted in the user's local timezone before API calls; RFC 3339 datetime inputs are also supported
- Fix:
market-statusUS post-market label — US status code203now displays asPost-Marketinstead ofTrading, so after-hours market state is reported correctly
v0.23.0
- Authorization-code login —
auth login --auth-code <CODE>now works through the/connectauthorization-code exchange, enabling browserless login flows for AI agents and hosted environments
v0.22.4
constituentnow supports ETFs — ETF symbols return an asset-allocation breakdown (holdings / regional / asset-class / industry tables); index symbols behave exactly as before- Full US ETF holdings from SEC N-PORT — for US ETFs,
constituentfetches the complete portfolio from SEC EDGAR N-PORT filings by default (weight, shares, market value — e.g. all 500+ holdings ofIVV.US); falls back to the platform's asset-allocation summary when SEC data is unavailable
v0.22.3
quotenow includes the US overnight session —quote <SYMBOL> --format jsonnow populatesovernight_quotealongsidepre_market_quoteandpost_market_quote; previously the overnight field was alwaysnull, skewing after-close analysis in AI workflows- Account-type banner on holdings commands —
positions,fund-positions,assets, andportfolionow print a one-line banner (Live A/C (real account)/Demo A/C (simulated account)) before the table, so it's clear which account the data belongs to;--format jsonoutput is unchanged
v0.22.2
- JSON timestamps now RFC 3339 — time-series and history commands (
kline,kline-history,trades,intraday,capital-flow,capital-dist,market-temp,topics) and account P&L flows now output ISO 8601 / RFC 3339 datetimes instead of raw Unix epochs market-temp --historydefault range — omitting--startnow defaults to 30 days before the end date instead of today, so a single--historycall returns a full month of data
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