macOS · Longbridge OpenAPI · Local only · v1.2.0

One-click liquidation built like a native Mac app.

LB Liquidator is a local-only desktop tool for Longbridge Securities. Pick positions, choose a ratio, confirm — market orders go straight from your Mac to the OpenAPI.

Apple Silicon .dmg · Free and open source · Auto-updates

LB Liquidator in dark mode: positions sidebar with sparklines, liquidation table, and a details panel with a real-time intraday chart
// Positions · Liquidate tab · real-time chart in the details panel
Binds to
127.0.0.1
Languages
EN · 简 · 繁
Quote refresh
5 s
Telemetry
None
01Overview

Everything you need to get flat, fast.

A focused trading utility, not a brokerage app. Every action is one or two keystrokes away.

02Positions

Positions at a glance.

The sidebar is the whole account in one column: a Demo | Live switch, per-currency totals with daily P/L, a filter, and every position with its price, day change and a 48×16 intraday sparkline. Quotes refresh every five seconds while the window is visible.

  • Per-currency totals, never converted
  • ↑ ↓ to move · Space to toggle
  • ⌘F filter by symbol or name
Positions sidebar with Demo/Live switch, USD and HKD totals, filter and four positions with sparklines
// Positions sidebar · demo data
03Liquidate

Sell with intent.

Tick the positions to exit and pick a ratio — All, 1/2, 1/3 or 1/4. The table shows quantity and estimated value per symbol, and nothing is sent until a confirmation lists every order and its total. Want a plan instead of a market order? Conditional orders set stop-loss, take-profit or trailing stops in one batch.

  • ⌘↩ confirm · Esc cancel
  • Stop-loss · take-profit · trailing stop
  • Live mode is marked in amber everywhere
Liquidate tab: quantity ratio control and a table of four positions with quantity, price and estimated value
// Liquidate tab · ratio and confirmation
04Details

Charts and live quotes.

Select a symbol and the details panel shows what matters before you sell: price, a real-time chart, quantity, cost, value, unrealised P/L and day change. Today is an intraday line with volume and the previous close; 1M, 3M and 1Y switch to candles.

  • Today · 1M · 3M · 1Y
  • Hover for O / H / L / C and volume
  • Polling pauses when the window is hidden
Details panel for AAPL.US with price, intraday chart with volume and previous close, and a grid of position stats
// Details panel · intraday chart
05History

Orders and buy back.

Every order the app places is written to a local history — sells, buys and conditional orders, with time, quantity, status and order ID. Sold too early? Buy back re-enters the exact positions from the last liquidation snapshot, at market.

  • Filter: All · Sell · Buy · Conditional
  • Stored on this Mac, last 500 orders
  • Buy back from the last snapshot
Orders view: a list of four sell orders with time, symbol, quantity, type and status
// Orders view · local history
06Desktop

Built like a native app

One window. Five regions. Nothing scrolls that shouldn’t.

The 1.1 redesign replaced the old web page with a fixed desktop layout modelled on tools like Xcode and Linear: dense, calm, and monochrome, with colour reserved for meaning.

The LB Liquidator window with its five regions outlined: rail, sidebar, tabs, details panel and status bar
// Five regions, one fixed window
  1. 01

    Rail

    Positions, Orders, Settings. Theme and account at the bottom.

  2. 02

    Sidebar

    Demo | Live switch, per-currency totals, filter and the position list with live sparklines.

  3. 03

    Tabs

    Liquidate, Conditional, Buy back. The sell button lives in a sticky footer with its shortcut.

  4. 04

    Details

    Price, real-time chart, cost and P/L for the selected symbol. ⌘D to toggle.

  5. 05

    Status bar

    Mode, local server, live-quote indicator, version and update progress.

What changed

Before 1.1 Now v1.2.0
A scrolling web page Fixed native window, overlay title bar
Static prices Live quotes, sparklines and a real-time chart
Credentials in a modal Settings → Account with a connection test
No history Local order history with filters
Manual update downloads In-app updater with progress and restart
07Security

Your keys never leave your Mac.

LB Liquidator has no backend, no account and no analytics. It is a local app that talks to one host: Longbridge.

// src/server.js
app.listen(3456, '127.0.0.1')

// CORS: an allowlist, never "*"
tauri://localhost
http://127.0.0.1:3456

// tauri.conf.json → CSP
script-src 'self'; font-src 'self' data:
// What “local-only” means in the code
  1. Loopback only

    The bundled API server listens on 127.0.0.1:3456 — never 0.0.0.0 — with a strict CORS origin allowlist.

  2. Credentials stay local

    App Key, App Secret and Access Token are stored on this Mac and sent only to the Longbridge OpenAPI.

  3. Locked-down webview

    A strict Content Security Policy: no remote scripts, no CDNs, fonts and icons bundled in the app.

  4. Demo by default

    The app opens in Demo mode with mock data. Live trading is an explicit switch, marked in amber everywhere.

  5. Open source

    Every line is on GitHub. Read it, build it yourself, or open an issue.

08Gallery

See it in both appearances.

Dark mode: positions with the liquidation table and details panel
// Positions · dark

Download · v1.2.0

Get flat in one click.

Free for macOS on Apple Silicon. Starts in Demo mode, so you can try every flow before connecting a real account.

Already installed? The app checks for updates on launch, downloads with progress in the status bar and restarts itself.