{"id":23506257,"url":"https://github.com/longbridge/longbridge-terminal","last_synced_at":"2026-06-02T06:00:46.925Z","repository":{"id":183370819,"uuid":"670015795","full_name":"longbridge/longbridge-terminal","owner":"longbridge","description":"AI-native CLI for the Longbridge trading platform with real-time market data, portfolio, and trading...","archived":false,"fork":false,"pushed_at":"2026-06-02T04:17:58.000Z","size":1497,"stargazers_count":855,"open_issues_count":4,"forks_count":69,"subscribers_count":14,"default_branch":"main","last_synced_at":"2026-06-02T05:21:40.857Z","etag":null,"topics":["ai-native","cli","finance","financial-analysis","ratatui","tui"],"latest_commit_sha":null,"homepage":"https://open.longbridge.com/docs/cli","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/longbridge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-24T05:38:18.000Z","updated_at":"2026-06-02T04:18:02.000Z","dependencies_parsed_at":"2025-01-09T15:45:35.597Z","dependency_job_id":"42844c20-db7c-4a63-be68-1a1c26626408","html_url":"https://github.com/longbridge/longbridge-terminal","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"e20e6250e02ea79718efecf25cc8db1365f5df88"},"previous_names":["longbridgeapp/longbridge-terminal","longbridge/longbridge-terminal"],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/longbridge/longbridge-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Flongbridge-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Flongbridge-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Flongbridge-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Flongbridge-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/longbridge","download_url":"https://codeload.github.com/longbridge/longbridge-terminal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/longbridge%2Flongbridge-terminal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33808702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-native","cli","finance","financial-analysis","ratatui","tui"],"created_at":"2024-12-25T10:00:54.054Z","updated_at":"2026-06-02T06:00:46.917Z","avatar_url":"https://github.com/longbridge.png","language":"Rust","funding_links":[],"categories":["Applications","Shell","Table of Contents"],"sub_categories":["Finance"],"readme":"# Longbridge Terminal\n\nAI-native CLI for the [Longbridge](https://longbridge.com) trading platform — real-time market data, portfolio, and trading. Also ships a full-screen TUI for interactive monitoring.\n\nCovers every Longbridge OpenAPI endpoint: real-time quotes, depth, K-lines, options, and warrants for market data; account balances, stock and fund positions for portfolio management; and order submission, modification, cancellation, and execution history for trading. Designed for scripting, AI-agent tool-calling, and daily trading workflows from the terminal.\n\n```bash\n$ longbridge static TSLA.US NVDA.US\n| Symbol  | Last    | Prev Close | Open    | High    | Low     | Volume    | Turnover        | Status |\n|---------|---------|------------|---------|---------|---------|-----------|-----------------|--------|\n| TSLA.US | 395.560 | 391.200    | 396.220 | 403.730 | 394.420 | 58068343  | 23138752546.000 | Normal |\n| NVDA.US | 183.220 | 180.250    | 182.970 | 188.880 | 181.410 | 217307380 | 40023702698.000 | Normal |\n\n$ longbridge quote TSLA.US NVDA.US --format json\n[\n  {\n    \"high\": \"403.730\",\n    \"last\": \"395.560\",\n    \"low\": \"394.420\",\n    \"open\": \"396.220\",\n    \"prev_close\": \"391.200\",\n    \"status\": \"Normal\",\n    \"symbol\": \"TSLA.US\",\n    \"turnover\": \"23138752546.000\",\n    \"volume\": \"58068343\"\n  },\n  {\n    \"high\": \"188.880\",\n    \"last\": \"183.220\",\n    \"low\": \"181.410\",\n    \"open\": \"182.970\",\n    \"prev_close\": \"180.250\",\n    \"status\": \"Normal\",\n    \"symbol\": \"NVDA.US\",\n    \"turnover\": \"40023702698.000\",\n    \"volume\": \"217307380\"\n  }\n]\n```\n\n[![asciicast](https://asciinema.org/a/785102.svg)](https://asciinema.org/a/785102)\n\n## Installation\n\n**Homebrew (macOS / Linux)**\n\n```bash\nbrew install --cask longbridge/tap/longbridge-terminal\n```\n\n**Windows** ([Scoop](https://scoop.sh))\n\n```powershell\nscoop install https://github.com/longbridge/longbridge-terminal/raw/refs/heads/main/.scoop/longbridge.json\n```\n\n**Windows** (PowerShell)\n\n```powershell\niwr https://github.com/longbridge/longbridge-terminal/raw/main/install.ps1 | iex\n```\n\n**Install script (macOS / Linux)**\n\n```bash\ncurl -sSL https://github.com/longbridge/longbridge-terminal/raw/main/install | sh\n```\n\nInstalls the `longbridge` binary to `/usr/local/bin` (macOS/Linux) or `%LOCALAPPDATA%\\Programs\\longbridge` (Windows).\n\n## Authentication\n\nUses **OAuth 2.0** via the Longbridge SDK — no manual token management required.\n\n```bash\nlongbridge auth login    # Opens browser for OAuth and saves token (managed by SDK)\nlongbridge auth logout   # Clear saved token\nlongbridge check    # Verify token, region, and API endpoint connectivity\n```\n\nToken is shared between CLI and TUI. After `login`, all commands work without re-authenticating.\n\nThe CLI auto-detects China Mainland on each startup by probing `geotest.lbkrs.com` in the background and caches the result. If detected, CN API endpoints are used automatically on the next run.\n\n## Shell Completion\n\nEnable tab-completion for `longbridge` commands and flags in your shell:\n\n**Bash** — add to `~/.bashrc` or `~/.bash_profile`:\n\n```bash\nsource \u003c(longbridge completion bash)\n```\n\n**Zsh** — add to `~/.zshrc`:\n\n```zsh\nsource \u003c(longbridge completion zsh)\n```\n\n**Fish** — add to `~/.config/fish/config.fish`:\n\n```fish\nlongbridge completion fish | source\n```\n\nAfter reloading your shell, `longbridge \u003cTAB\u003e` will suggest subcommands, flags, and values.\n\n## CLI Usage\n\n```\nlongbridge \u003ccommand\u003e [options]\n```\n\nAll commands support `--format json` for machine-readable output. Commands that accept `--count` also accept `--limit` as an alias (for AI agent compatibility):\n\n```bash\nlongbridge quote TSLA.US --format json\nlongbridge positions --format json | jq '.[] | {symbol, quantity}'\n```\n\n\u003c!-- COMMANDS_START --\u003e\n\n### Diagnostics\n\n```bash\nlongbridge check   # Check token validity, and API connectivity\n```\n\n### Quotes\n\n```bash\nlongbridge quote TSLA.US 700.HK                     # Real-time quotes for one or more symbols\nlongbridge depth TSLA.US                            # Level 2 order book depth (bid/ask ladder)\nlongbridge brokers 700.HK                           # Broker queue at each price level (HK market)\nlongbridge trades TSLA.US [--count 50]              # Recent tick-by-tick trades\nlongbridge intraday TSLA.US                         # Intraday minute-by-minute price and volume lines for today\nlongbridge kline TSLA.US [--period day]             # OHLCV candlestick (K-line) data [--adjust none|forward]\nlongbridge kline history TSLA.US --start 2024-01-01 # Historical OHLCV candlestick data within a date range\nlongbridge static TSLA.US                            # Static reference info for one or more symbols\nlongbridge calc-index TSLA.US --fields pe,pb,eps     # Calculated financial indexes (PE, PB, EPS, turnover rate, etc.)\nlongbridge capital TSLA.US                          # Capital distribution snapshot (large/medium/small inflow and outflow)\nlongbridge capital TSLA.US --flow                   # Intraday capital flow time series (large/medium/small money in vs out)\nlongbridge market-temp [HK|US|CN|SG]                # Market sentiment temperature index (0–100, higher = more bullish)\nlongbridge constituent .SPX.US [--sort market-cap]  # Index constituent stocks (US indexes need a leading dot, e.g. .DJI.US, .SPX.US)\nlongbridge trading session                          # Trading session schedule (open/close times) for all markets\nlongbridge trading days HK                          # Trading days and half-trading days for a market\nlongbridge security-list HK                         # Full list of securities available in a market\nlongbridge participants                             # Market maker (participant) broker IDs and names\nlongbridge subscriptions                            # Active real-time WebSocket subscriptions for this session\n```\n\n### News\n\n```bash\nlongbridge news TSLA.US [--count 20]             # Latest news articles for a symbol\nlongbridge news detail \u003cid\u003e                      # Full Markdown content of a news article\nlongbridge filing list AAPL.US [--count 20]      # Regulatory filings and announcements for a symbol\nlongbridge filing detail AAPL.US \u003cid\u003e            # Full Markdown content of a filing; --file-index N for multi-file filings (e.g. 8-K exhibit)\nlongbridge topic list TSLA.US [--count 20]       # Community discussion topics for a symbol\nlongbridge topic detail \u003cid\u003e                     # Full details of a community topic (body, author, tickers, counts, URL)\nlongbridge topic replies \u003cid\u003e [--page 1]         # Paginated list of replies for a topic (--size 1–50)\nlongbridge topic mine [--type article]           # Topics created by the authenticated user\nlongbridge topic create --body \"…\"               # Publish a new community discussion topic (--title optional)\nlongbridge topic create-reply \u003cid\u003e --body \"…\"    # Post a reply to a topic (--reply-to \u003creply_id\u003e for nested replies)\n```\n\n### Options \u0026 Warrants\n\n```bash\nlongbridge option quote AAPL240119C190000          # Real-time quotes for option contracts\nlongbridge option chain AAPL.US                   # Option chain: list all expiry dates\nlongbridge option chain AAPL.US --date 2024-01-19 # Option chain: strike prices for a given expiry\nlongbridge option volume AAPL.US                  # Real-time option Call/Put volume and Put/Call ratio\nlongbridge option volume daily AAPL.US            # Daily option Call/Put volume and open interest history\nlongbridge option volume daily AAPL.US --count 60 # Return last 60 trading days\nlongbridge warrant quote 12345.HK                 # Real-time quotes for warrant contracts\nlongbridge warrant 700.HK                         # Warrants linked to an underlying security\nlongbridge warrant issuers                        # Warrant issuer list (HK market)\n```\n\n### Fundamentals\n\n```bash\nlongbridge financial-report AAPL.US [--kind IS|BS|CF]               # Multi-period financial statements (income / balance sheet / cash flow)\nlongbridge financial-report AAPL.US --latest                         # Latest financial report summary\nlongbridge financial-report snapshot AAPL.US --report qf --year N --period N  # Earnings summary + forecast vs actual (revenue/EBIT/EPS beat/miss) + financial ratios\nlongbridge financial-statement AAPL.US [--kind IS|BS|CF|ALL] [--report af|saf|qf|cumul]  # Detailed financial statement (v3 endpoint)\nlongbridge institution-rating AAPL.US                                # Analyst rating distribution and consensus target price\nlongbridge institution-rating AAPL.US --history                      # Rating and target price change history\nlongbridge institution-rating AAPL.US --industry-rank [--page 1] [--limit 20]  # Industry-wide institution rating ranking\nlongbridge institution-rating AAPL.US --views                        # Monthly buy/hold/sell distribution timeline (institutional views)\nlongbridge institution-rating detail AAPL.US                         # Monthly rating trend and analyst accuracy history\nlongbridge dividend AAPL.US                                          # Historical dividend records\nlongbridge dividend detail AAPL.US                                   # Dividend allocation plan details\nlongbridge forecast-eps AAPL.US                                      # Analyst EPS consensus forecast snapshots\nlongbridge consensus AAPL.US                                         # Revenue / profit / EPS multi-period comparison with beat/miss markers\nlongbridge valuation AAPL.US [--indicator pe|pb|ps|dvd_yld]         # Current valuation snapshot and peer comparison\nlongbridge valuation AAPL.US --history [--indicator pe] [--range 5]  # Historical valuation time series (1 / 3 / 5 / 10 years)\nlongbridge valuation-rank AAPL.US [--start 20240101] [--end 20241231] # Industry valuation percentile ranking (default: last 30 days)\nlongbridge analyst-estimates AAPL.US                                 # Analyst consensus EPS estimates\nlongbridge fund-holder AAPL.US [--count 20]                          # Funds and ETFs holding this stock\nlongbridge shareholder AAPL.US [--range all|inc|dec] [--sort chg]    # Institutional shareholders with QoQ change tracking\nlongbridge shareholder AAPL.US --top                                  # Top 20 major shareholders (includes individuals and insiders, multi-period)\nlongbridge shareholder AAPL.US --object-id \u003cID\u003e                       # Holding and trade detail for a specific shareholder (use ID from --top output)\nlongbridge compare AAPL.US                                            # Multi-stock valuation comparison vs server-selected industry peers\nlongbridge compare 9988.HK 700.HK 9999.HK [--currency HKD]           # Compare specific stocks side by side (price, market cap, PE/PB/PS, ROE, ROA, div yield, and more)\nlongbridge corp-action 700.HK [--all]                                 # Corporate actions (splits, dividends, rights, etc.) — default 30, --all for full history\nlongbridge business-segments AAPL.US [--history] [--report qf|saf|af] [--cate \u003ccate\u003e]  # Revenue segment breakdown (current snapshot or historical trends)\nlongbridge industry-rank --market US|HK|CN|SG [--indicator leading-gainer|...|net-profit-growth]  # Industry ranking list; output symbols feed into industry-peers\nlongbridge industry-peers IN00446.US                                  # Industry peer group hierarchy tree for an industry index symbol (from industry-rank)\n```\n\n### Deposits \u0026 Withdrawals\n\n```bash\nlongbridge bank-cards                                               # List linked bank cards\nlongbridge withdrawals [--page 1] [--limit 20]                      # Withdrawal history\nlongbridge deposits [--page 1] [--limit 20] [--states 0,1,2] [--currencies HKD,USD]  # Deposit history\n```\n\n### Search\n\n```bash\nlongbridge search TSLA [--tab market|news|posts|hashtags|help|share-lists|users|institutions]  # Search across multiple content types\nlongbridge search-hot                                               # Hot search keywords\n```\n\n### IPO\n\n```bash\nlongbridge ipo subscriptions                                        # IPO stocks currently in filing or subscription stage\nlongbridge ipo wait-listing                                         # IPO stocks in grey-market (wait-listing) stage\nlongbridge ipo listed [--page 1] [--limit 20]                       # Recently listed IPO stocks\nlongbridge ipo calendar                                             # IPO calendar (all upcoming and recent IPOs)\nlongbridge ipo detail \u003csymbol\u003e [--market HK|US]                     # IPO profile, timeline, eligibility, and holdings for a symbol\nlongbridge ipo orders [--market HK] [--status 0] [--page 1]         # IPO orders (active + history) for the current account\nlongbridge ipo orders detail \u003corder_id\u003e                             # Full detail for a single IPO order\nlongbridge ipo profit-loss [--period all|1m|3m|6m|1y] [--page 1]   # IPO P\u0026L summary and item list\nlongbridge ipo us-subscriptions                                     # US IPO stocks currently in subscription stage\nlongbridge ipo us-wait-listing                                      # US IPO stocks in wait-listing stage\nlongbridge ipo us-listed [--page 1] [--limit 20]                    # Recently listed US IPO stocks\nlongbridge ipo submit TSLA.US --qty 200 --amount 1000 [--method 2]  # Submit IPO subscription (prompts for confirmation)\nlongbridge ipo withdraw \u003corder_id\u003e                                  # Withdraw IPO subscription (prompts for confirmation)\n```\n\n### Market Data\n\n```bash\nlongbridge rank                                                      # List available popularity ranking tab keys\nlongbridge rank --key ib_hot_all-us [--count 20]                     # Stocks ranked by composite heat score (trading activity, media, community, volatility)\nlongbridge top-movers [--market HK|US|CN|SG] [--sort hot|time|chg]  # Stocks with abnormal price moves paired with correlated news and reason summaries\nlongbridge exchange-rate                                             # Exchange rates for all markets\nlongbridge finance-calendar financial [--symbol AAPL.US]             # Earnings guidance announcements from today onward\nlongbridge finance-calendar report [--symbol AAPL.US]                # Earnings report release dates from today onward\nlongbridge finance-calendar dividend [--symbol AAPL.US]              # Dividend ex-date / payment events from today onward\nlongbridge finance-calendar ipo [--market US]                        # IPO listing timeline from today onward\nlongbridge finance-calendar macrodata [--star 3]                     # Macro economic events (--star 1–3 filters by importance)\nlongbridge finance-calendar closed [--market HK]                     # Market holidays and shortened trading days\n```\n\n### Watchlist\n\n```bash\nlongbridge watchlist                               # List all watchlist groups and their securities (pinned shown first)\nlongbridge watchlist show \u003cid|name\u003e                # Show securities in a specific group (pinned marked)\nlongbridge watchlist create \"My Portfolio\"         # Create a new watchlist group\nlongbridge watchlist update \u003cid\u003e --add TSLA.US     # Add securities in a group\nlongbridge watchlist update \u003cid\u003e --remove AAPL.US  # Remove securities from a group\nlongbridge watchlist delete \u003cid\u003e                   # Delete a watchlist group\nlongbridge watchlist pin TSLA.US AAPL.US           # Pin securities to the top of their group\nlongbridge watchlist pin --remove 700.HK           # Unpin securities\n```\n\n### Sharelist\n\n```bash\nlongbridge sharelist                                              # List own and subscribed sharelists\nlongbridge sharelist [--count 50]                                 # List with custom page size\nlongbridge sharelist detail \u003cid\u003e                                  # Show full details and constituent stocks\nlongbridge sharelist create --name \"My Picks\" [--description \"…\"] # Create a new sharelist\nlongbridge sharelist delete \u003cid\u003e                                  # Delete a sharelist\nlongbridge sharelist add \u003cid\u003e TSLA.US AAPL.US 700.HK             # Add stocks to a sharelist\nlongbridge sharelist remove \u003cid\u003e TSLA.US                          # Remove stocks from a sharelist\nlongbridge sharelist sort \u003cid\u003e TSLA.US AAPL.US 700.HK            # Reorder stocks in a sharelist\nlongbridge sharelist popular [--count 10]                         # Get popular (trending) sharelists\n```\n\n### Trading\n\n```bash\nlongbridge order                                           # Today's orders, or historical with --history\nlongbridge order --history [--start 2024-01-01]            # Historical orders (use --symbol to filter)\nlongbridge order detail \u003corder_id\u003e                         # Full detail for a single order including charges and history\nlongbridge order executions                                # Today's trade executions (fills), or historical with --history\nlongbridge order buy TSLA.US 100 --price 250.00            # Submit a buy order (prompts for confirmation)\nlongbridge order sell TSLA.US 100 --price 260.00           # Submit a sell order (prompts for confirmation)\nlongbridge order cancel \u003corder_id\u003e                         # Cancel a pending order (prompts for confirmation)\nlongbridge order replace \u003corder_id\u003e --qty 200 --price 255.00 # Modify quantity or price of a pending order\nlongbridge assets [--currency USD]                         # Asset overview: net assets, cash, buy power, margins, and per-currency breakdown\nlongbridge cash-flow [--start 2024-01-01]                  # Cash flow records (deposits, withdrawals, dividends, settlements)\nlongbridge portfolio                                       # Portfolio overview: total assets, P/L, holdings, and cash breakdown\nlongbridge portfolio short-margin                          # Short-selling margin deposit details\nlongbridge positions                                       # Current stock (equity) positions across all sub-accounts\nlongbridge fund-positions                                  # Current fund (mutual fund) positions across all sub-accounts\nlongbridge margin-ratio TSLA.US                            # Margin ratio requirements for a symbol\nlongbridge max-qty TSLA.US --side buy --price 250          # Estimate maximum buy or sell quantity given current account balance\n```\n\n### Profit Analysis\n\n```bash\nlongbridge profit-analysis                                  # P\u0026L summary with stock breakdown\nlongbridge profit-analysis detail 700.HK                    # Stock P\u0026L breakdown + transaction flows\nlongbridge profit-analysis detail 700.HK --derivative       # Show derivative flows\nlongbridge profit-analysis by-market                        # Stock P\u0026L by market (paginated)\nlongbridge profit-analysis by-market --market HK --size 50  # Filter by market\n```\n\n### Statements\n\n```bash\nlongbridge statement list [--type daily|monthly]                        # List available account statements (daily or monthly)\nlongbridge statement export --file-key \u003cKEY\u003e --section equity_holdings  # Export statement sections as CSV or Markdown\nlongbridge statement export --file-key \u003cKEY\u003e --all                     # Export all non-empty sections\n```\n\n### Insider Trades\n\n```bash\nlongbridge insider-trades TSLA.US                 # Recent Form 4 insider trades (SEC EDGAR, US stocks only)\nlongbridge insider-trades AAPL.US --count 40      # Fetch 40 Form 4 filings instead of the default 20\nlongbridge insider-trades NVDA.US --format json   # Export as JSON\n```\n\n### Investors\n\n```bash\nlongbridge investors                                          # Top 50 active fund managers by AUM (live SEC 13F rankings; passive index giants excluded; use --top N to change)\nlongbridge investors 0001067983                               # View 13F holdings for any filer by SEC CIK number\nlongbridge investors 0001067983 --top 20                      # Show top 20 positions only\nlongbridge investors 0001067983 --format json                 # Export holdings as JSON\nlongbridge investors changes 0001067983                       # Quarter-over-quarter changes (NEW/ADDED/REDUCED/EXITED)\nlongbridge investors changes 0001067983 --from 2024-12-31     # Compare latest vs a specific period\n```\n\n### Recurring Investment\n\n```bash\nlongbridge dca                                                # List all recurring investment plans\nlongbridge dca --status Active                                # Filter by status: Active | Suspended | Finished\nlongbridge dca --symbol TSLA.US                               # Filter by symbol\nlongbridge dca create TSLA.US --amount 500 --frequency weekly --day-of-week mon  # Create weekly recurring investment plan\nlongbridge dca create 700.HK --amount 1000 --frequency monthly --day-of-month 15  # Monthly recurring investment plan\nlongbridge dca update \u003cPLAN_ID\u003e --amount 800                  # Update plan amount\nlongbridge dca pause \u003cPLAN_ID\u003e                                # Pause a recurring investment plan\nlongbridge dca resume \u003cPLAN_ID\u003e                               # Resume a paused recurring investment plan\nlongbridge dca stop \u003cPLAN_ID\u003e                                 # Permanently stop a recurring investment plan\nlongbridge dca history \u003cPLAN_ID\u003e                              # Trade history for a plan\nlongbridge dca stats                                          # Recurring investment statistics summary\nlongbridge dca calc-date TSLA.US --frequency weekly --day-of-week fri  # Calculate next trade date\nlongbridge dca check TSLA.US AAPL.US 700.HK                  # Check which symbols support recurring investment\nlongbridge dca set-reminder 6                                 # Set reminder hours before trade (1 | 6 | 12)\n```\n\n### Short Selling\n\n```bash\nlongbridge short-positions AAPL.US                            # US: bi-weekly FINRA short interest (short interest, rate, days to cover)\nlongbridge short-positions 700.HK                             # HK: daily HKEX disclosed short positions (open short shares, balance, cost, rate)\nlongbridge short-positions TSLA.US --count 50                 # Return last 50 records\nlongbridge short-trades AAPL.US                               # Daily short sale volume (FINRA/NASDAQ for US; HKEX for HK)\nlongbridge short-trades 700.HK [--count 50]                   # HK: amount, balance, total amount, rate, close per trading day\n```\n\n### Stock Screener\n\n```bash\nlongbridge screener strategies                                # List recommended stock-selection strategies\nlongbridge screener strategies --all                          # List all platform strategies\nlongbridge screener strategies --mine                         # List user-created strategies\nlongbridge screener strategies --id \u003cID\u003e                      # Show groups and indicators for a specific strategy\nlongbridge screener search --strategy-id \u003cID\u003e                 # Run a saved strategy and return matching stocks\nlongbridge screener search --market HK --filter filter_marketcap:100:1000 --filter filter_divyld:3:  # Custom filter (key:min:max, omit bound to leave open)\nlongbridge screener indicators                                # List all available filter indicators with IDs, keys, and default value ranges\n```\n\n\u003c!-- COMMANDS_END --\u003e\n\n### Symbol Format\n\n```\n\u003cCODE\u003e.\u003cMARKET\u003e   e.g.  TSLA.US   700.HK   600519.SH\n```\n\nMarkets: `HK` (Hong Kong) · `US` (United States) · `CN` / `SH` / `SZ` (China A-share) · `SG` (Singapore)\n\n## Skill\n\nInstall the skill to give your AI tools full knowledge of all `longbridge` CLI commands:\n\n```bash\nnpx skills add longbridge/developers\n```\n\nMore about Longbridge Skill, please visit: https://open.longbridge.com/skill/\n\nOnce installed, Claude can query market data, run technical analysis, and manage trades directly from your AI workflow.\n\n```\nclaude\u003e Show me TSLA and NVDA performance over the last 5 days\n\n● Bash(longbridge kline TSLA.US --period day --count 5 \u0026 longbridge kline NVDA.US --period day --count 5 \u0026 wait)\n\n● Here's the 5-day performance for both:\n\n  TSLA.US — Last 5 Days\n\n  ┌────────┬────────┬────────┬────────┬────────┬──────────┐\n  │  Date  │  Open  │  High  │  Low   │ Close  │  Change  │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 10 │ 402.22 │ 406.59 │ 398.19 │ 399.24 │ —        │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 11 │ 402.28 │ 416.38 │ 402.15 │ 407.82 │ ▲ +2.15% │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 12 │ 405.18 │ 406.50 │ 394.65 │ 395.01 │ ▼ -3.14% │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 13 │ 399.17 │ 400.20 │ 389.95 │ 391.20 │ ▼ -0.96% │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 16 │ 396.22 │ 403.73 │ 394.42 │ 395.56 │ ▲ +1.11% │\n  └────────┴────────┴────────┴────────┴────────┴──────────┘\n\n  5-day return: -0.92% | Range: $389.95 – $416.38\n\n  NVDA.US — Last 5 Days\n\n  ┌────────┬────────┬────────┬────────┬────────┬──────────┐\n  │  Date  │  Open  │  High  │  Low   │ Close  │  Change  │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 10 │ 112.34 │ 115.20 │ 111.80 │ 114.50 │ —        │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 11 │ 114.80 │ 117.60 │ 114.20 │ 116.90 │ ▲ +2.10% │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 12 │ 116.50 │ 118.30 │ 115.40 │ 115.80 │ ▼ -0.94% │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 13 │ 115.20 │ 116.80 │ 113.90 │ 114.60 │ ▼ -1.04% │\n  ├────────┼────────┼────────┼────────┼────────┼──────────┤\n  │ Mar 16 │ 114.90 │ 117.50 │ 114.30 │ 116.80 │ ▲ +1.92% │\n  └────────┴────────┴────────┴────────┴────────┴──────────┘\n\n  5-day return: +2.01% | Range: $111.80 – $118.30\n```\n\n## TUI\n\n```bash\nlongbridge tui\n```\n\nFeatures: real-time watchlist, candlestick charts, portfolio view, stock search, Vim-like keybindings.\n\n## Output Format\n\n```bash\n--format table   # Human-readable ASCII table (default)\n--format json    # Machine-readable JSON, suitable for AI agents and piping\n```\n\n## Rate Limits\n\nLongbridge OpenAPI: maximum 10 calls per second. The SDK auto-refreshes OAuth tokens.\n\n## Requirements\n\n- macOS, Linux, or Windows\n- Internet connection and browser access (for initial OAuth)\n- [Longbridge account](https://open.longbridge.com)\n\n## Documentation\n\n- [Longbridge OpenAPI Docs](https://open.longbridge.com)\n- [Rust SDK](https://longbridge.github.io/openapi/rust/longbridge/)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flongbridge%2Flongbridge-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flongbridge%2Flongbridge-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flongbridge%2Flongbridge-terminal/lists"}