Changelog
2026-05-22
CLI v0.22.0
shareholder --top— Top-20 major shareholders (institutions, individuals, insiders) with multi-period comparison;--object-id <id>for single shareholder holding history and trade detailsshort-positions— Extended to HK market (.HKauto-routes to HKEX short-position data), unified with US FINRA interfaceshort-trades— Daily short sale volume (US: FINRA/NASDAQ; HK: HKEX disclosure data)compare— Multi-stock valuation comparison (PE/PB/PS/market-cap/close); server auto-selects peers when no comparison symbols giventop-movers— Stocks whose price exceeds the 20-day standard deviation, with correlated news; supports--market,--sort time|change|hotscreenercommand group — Stock screener:strategies(recommended/saved),search --strategy-id <id>or--filter key:min:max,indicatorsto list available filtersrank— Popularity leaderboard; list all categories without--key, or pass--key <key>(e.g.ib_hot_all-us)- MCP server updated with the same new tools
SDK v4.2.0
- FundamentalContext —
shareholder_top,shareholder_detail,valuation_comparison - QuoteContext —
short_positionsunified for US and HK; newshort_trades - MarketContext —
top_movers,rank_categories,rank_list - New ScreenerContext —
screener_recommend_strategies,screener_user_strategies,screener_strategy,screener_search,screener_indicators - Languages: Rust / Python / Node.js / Java / C / C++ / Go
2026-05-15
CLI v0.21.0
industry-rank— industry ranking by market (US/HK/CN/SG); pairs withindustry-peersto explore the full competitive tree for any sectorindustry-peers— sub-sector tree showing stock count, daily change, and YTD change per nodebusiness-segments— revenue breakdown by business segment, current period or historical trendfinancial-report snapshot— AI-generated earnings summary with beat/miss analysis vs consensus estimatesinstitution-rating --views— month-by-month buy/hold/sell distribution to track how analyst sentiment shifts over time- MCP server updated with the same new capabilities (133 tools total)
2026-05-13
SDK v4.1.0
- 7 new context types, 66 methods —
FundamentalContext(20 methods: financial reports, analyst ratings, dividends, EPS forecasts, consensus estimates, valuation),MarketContext(9 methods: market status, broker holdings, A/H premium, trade stats),CalendarContext(7 methods: earnings / dividends / splits / IPO calendar),PortfolioContext(5 methods: exchange rates, P&L analysis),AlertContext(4 methods: price alerts),DCAContext(12 methods: DCA plans lifecycle),SharelistContext(9 methods: community sharelists) - QuoteContext — 4 new methods:
short_positions,option_volume,option_volume_daily,update_pinned - ContentContext — new
topic_detailand topic reply methods - Rust SDK —
Config::header()to inject custom HTTP/WebSocket headers - Parameters now use typed enums instead of raw integers; monetary fields use
Decimaltype
Docs
- Sidebar restructured: News & Contents section consolidates News, Topics, and Sharelist; Quote Watchlist replaces Individual; Appendix replaces Socket Feed (collapsed by default)
- Fundamental and News & Contents sections added to the docs overview
2026-05-08
CLI v0.20.0
ipocommand group — comprehensive IPO tools for HK (subscriptions,wait-listing,listed,calendar,detail,orders,profit-loss) and US markets (us-subscriptions,us-wait-listing,us-listed)financial-statement— detailed hierarchical financial statements (IS/BS/CF) with YoY comparison;financial-report --latestfor key indicator summaryvaluation-rank— daily PE/PB/PS industry percentile rank over a date rangeinstitution-rating --history/--industry-rank— analyst rating history and industry-wide analyst coverage rankingnews search/topic search— keyword search across news and community topicsbank-cards,withdrawals,deposits— account management commands for linked cards and transaction historyportfolio short-margin— short-selling margin deposit details per position
2026-05-05
CLI v0.19.2
finance-calendarrevamp — restructured into subcommands:report,dividend,split,ipo,macrodata,closed; new--filter watchlist|positionsscopes events to your watchlist or holdings- TUI enhancements — full mouse support; chart type toggle (line / candlestick) in stock detail view
quote— new "Last Chg%" column;corp-actiondefaults to 30 items with--allfor full list;update --forceskips version check
2026-04-30
CLI v0.19.0
- TUI: History orders + cancel/modify —
Tabon the Orders page switches between Today and History;c/mcancel or modify active orders in-terminal auth statusquote packages — displays subscribed quote packages and a QR code to the quote mallquant run— run indicator scripts server-side against historical K-line datacalc-indexfield aliases — short aliases (iv,oi,vol,mktcap,exp,strike) and improved grouped--help
2026-04-28
CLI v0.18.0
- TUI Orders page — interactive orders table with trading shortcuts and order entry dialog for in-terminal trading
dividendenhancements —--pagepagination and--yearfilter; 50 records per page (up from 30)
2026-04-24
CLI v0.17.4
--limitalias — all--countparameters now accept--limitas an alias (AI agent tool-calling compatibility)- Fix: Unix self-update —
longbridge updateno longer fails with ETXTBUSY on Unix
2026-04-22
CLI v0.17.3
- Fix: token refresh hang — expired access token on a flaky network now fails immediately with a clear error; token file preserved for next retry
auth status— now shows three states:valid/refresh pending(auto-refreshes) /expired(was two states,refresh pendingpreviously shown asexpired)- Fix:
--auth-codelogin + Windows browser URL — browser OAuth flow fixed when no token exists; Windows URL truncation on¶meters fixed
2026-04-20
CLI v0.17.1
completioncommand — shell tab-completion for bash, zsh, fish, elvish, and powershell- Sets
User-Agent: longbridge-cli/<version>and addsx-cli-cmdheader on all API requests
2026-04-17
CLI v0.17.0
dca— full recurring investment lifecycle: create plans (daily/weekly/fortnightly/monthly), pause/resume/stop, view trade history, check symbol eligibility, and calculate next trade datesharelist— browse and manage community stock lists; discover trending sharelists withpopularshort-positions— US stock short interest data: short ratio, days-to-cover, and share counts (FINRA bi-monthly)option volume— real-time call/put volume and put/call ratio;dailysubcommand for historical dataoption chainfix: without--datenow lists expiry dates (not strikes)
2026-04-16
CLI v0.16.3
authsubcommand group —longbridge auth login/auth logout/auth status; newauth statusshows token validity, expiry, and account info locally without networkalert enable/alert disable— toggle alerts on/off without deleting them- Fix: US index symbols —
.DJI.US,.VIX.USnow parse correctly; US indexes require a leading dot - "Did you mean?" hints — symbol format suggestions when a query returns no data
2026-04-13
CLI v0.16.0
- 21+ new commands —
company,executive,industry-valuation,operating,corp-action,invest-relation,constituent,market-status,broker-holding,ah-premium,trade-stats,anomaly,alert,profit-analysis profit-analysis— full P&L analysis: summary, per-stock breakdown, individual stock detail with transaction flows, and market-filtered viewsupdate— cross-platform self-update with Windows support and CDN acceleration;--release-notesto view changelogintraday --date— historical intraday data for a past date
2026-04-09
CLI v0.15.0
portfoliocommand — total P/L, asset distribution by market, holdings, and cash balancesinvestorscommand — active fund manager rankings from SEC 13F data; view any investor's holdings by CIK with live prices$ longbridge investors | # | name | AUM | period | cik | |----|---------------------------------------------|----------|-------------|------------| | 1 | Capital International Investors | $637.97B | 31-DEC-2025 | 0001562230 | | 2 | Capital Research Global Investors | $541.73B | 31-DEC-2025 | 0001422848 | | 3 | CTC LLC | $404.44B | 31-DEC-2025 | 0001445893 | | 4 | BERKSHIRE HATHAWAY INC | $274.16B | 31-DEC-2025 | 0001067983 | | 5 | DODGE & COX | $185.26B | 31-DEC-2025 | 0000200217 | $ longbridge investors 0001067983 Period: 2025-12-31 (filed: 2026-02-17) BERKSHIRE HATHAWAY INC (period: 2025-12-31) Portfolio: 42 positions, total value ~$274.16B | company | value | shares | weight | |------------------------------|----------|---------|--------| | APPLE INC | $61.96B | 227.92M | 22.6% | | AMERICAN EXPRESS CO | $56.09B | 151.61M | 20.5% | | BANK AMERICA CORP | $28.45B | 517.30M | 10.4% | | COCA COLA CO | $27.96B | 400.00M | 10.2% | | CHEVRON CORP NEW | $19.84B | 130.16M | 7.2% | | MOODYS CORP | $12.60B | 24.67M | 4.6% | | OCCIDENTAL PETE CORP | $10.89B | 264.94M | 4.0% | | CHUBB LIMITED | $10.69B | 34.25M | 3.9% | | KRAFT HEINZ CO | $7.90B | 325.63M | 2.9% | | ALPHABET INC | $5.59B | 17.85M | 2.0% |insider-trades— SEC Form 4 insider transaction history for any symbol$ longbridge insider-trades TSLA.US Fetching 20 Form 4 filings... | date | filer | title | type | shares | price | value | owned_after | |------------|--------------|---------------|----------|--------|---------|----------|-------------| | 2026-03-31 | Zhu Xiaotong | SVP | EXERCISE | 20.00K | $20.57 | $411.40K | 20.00K | | 2025-09-11 | Zhu Xiaotong | SVP, APAC and | SELL | 20.00K | $363.75 | $7.28M | 47.60K | | 2025-06-12 | Zhu Xiaotong | SVP, APAC | EXERCISE | 15.00K | $20.57 | $308.55K | 82.60K | | 2025-06-12 | Zhu Xiaotong | SVP, APAC | SELL | 15.00K | $323.81 | $4.86M | 67.60K | Source: SEC EDGAR Form 4 — TSLAwatchlist pin/unpin— pin securities to the top of a watchlist groupassetscommand — renamed frombalance; full asset overview: net assets, buying power, margin, risk level, and per-currency cash breakdown
2026-04-08
CLI v0.14.2
--langflag — set content language (zh-CN,zh-HK,en) for all commands; falls back to systemLANGenv var
2026-04-02
CLI v0.14.1
- CN region login —
longbridge auth loginnow supports China region routing -vflag — quick version check
CLI v0.14.0
- Device auth — the Longbridge Developers platform now supports OAuth Device Authorization Flow;
longbridge auth logindisplays a verification URL and code to authorize from any device, including SSH and headless environments - Order enhancements — trailing stop and AO order types;
--expire-date,--outside-rth,--remarkadded to order commands - Fix — prebuilt Linux binary now uses musl to fix segfault on some distributions
2026-04-01
CLI v0.13.0
- Add Fundamentals & Analysis commands:
financial-report— financial statements with period and type filtersvaluation— P/E, P/B, P/S, dividend yield snapshot with peer comparison and history modeforecast-eps— analyst EPS forecast consensusconsensus— revenue/profit/EPS consensus with beat/miss annotationsinstitution-rating/institution-rating detail— rating distribution and monthly trendsshareholder— institutional shareholders with change tracking and sort optionsfund-holder— funds and ETFs holding a symboldividend/dividend detail— dividend history and distribution planfinance-calendar— financial calendar by event type (financial, report, dividend, ipo, macrodata, closed)exchange-rate— exchange rates for all supported currencies
- Refactor CLI commands with domain-grouped naming convention
2026-03-30
- Add Statement API:
GET /v1/statement/list— list daily or monthly account statementsGET /v1/statement/download— get presigned download URL for a statement file
2026-03-25
- Add Community API:
GET /content/topics/mine— list my published topicsPOST /content/topics— create a new community topicGET /content/topics/{id}— get topic detailGET /content/topics/{topic_id}/comments— list topic repliesPOST /content/topics/{topic_id}/comments— create a topic reply
2025-06-17
- Update the interface for Get Account Balance
GET /v1/asset/accountAdd response field (frozen_transaction_fees)
2024-10-09
SDK 2.0.0
- Print the opened quote packages when connected to the server.
- The quantity type in the trading API has changed from
inttoDecimal.
2024-09-11
- Updated Get Security List API
- The
GET /v1/quote/get_security_listnow returns the name in the corresponding language based on theaccept-languagerequest header, instead of returning all three languages at once.
- The
2024-08-28
- Change the
Depth.pricefield in the SDK fromDecimaltype toOptional[Decimal]type
2024-05-17
- Expand
outside_rthfield to support overnight trading in order placement and query APIs
2024-05-06
- Update the interface for Get Account Balance
GET /v1/asset/accountAdd response field (buy_power)
2024-04-29
- Remove
TSMPCT,TSMAMTOrder type
2024-04-15
- Add
last_share,last_pricefield to Trade push.
2024-04-13
- Add
remarkfield to Trade push.
2023-11-03
- Add quote history candlestick interface
- Long connection
Business Command:27, obtain the history candlestick of security
- Long connection
2023-08-17
- Update the interface for Get Account Balance
GET /v1/asset/accountAdd parameter (currency)
2023-04-12
- Update the interface for Get Stock Positions
GET /v1/asset/stockAdd response field (init_quantity)
2023-04-11
- Added order details query interface
- 'GET /v1/trade/order' Get the order details
- Added the Estimate Maximum Purchase Quantity interface
- 'GET /v1/trade/estimate/buy_limit' Get the estimated maximum purchase quantity
- U.S. stock options add market order and condition order support
2022-07-18
- Update security static info interface
- Long connection
Business Command:10, response addboardfields
- Long connection
2022-07-14
- Add get stock margin ratio interface
GET /v1/risk/margin-ratioGet stock margin ratio
2022-06-30
- Add get watched groups interface
GET /v1/watchlist/groupsGet watched groups
2022-06-20
- Update account balance interface
GET /v1/asset/accountResponse to increase the net assets (net_assets), initial margin (init_margin), maintenance margin (maintenance_margin) fields
- Update position interface
GET /v1/asset/stockSupport users to obtain option positions
2022-06-15
- Add quote capital interface
- Long connection
Business Command:24, obtain the daily capital distribution of security - Long connection
Business Command:25, obtain the daily capital flow intraday of security
- Long connection