长桥一键清仓工具 — 本地安全运行,支持 Web 与 Mac 原生应用
One-click position liquidation tool for Longbridge — local-only, secure. Runs as a web app or native Mac app.
| Dark Mode | Light Mode |
|---|---|
![]() |
![]() |
| Conditional Sell | API Setup |
|---|---|
![]() |
![]() |
Landing page: https://liquidator.nowornever.work
- Local-only — API credentials stored in browser localStorage only, server binds to 127.0.0.1
- Mac native app — Tauri v2 wrapper, double-click to launch, no terminal needed
- Auto-updates — Sparkle-powered, checks for updates on launch + manual check via menu
- Selective liquidation — choose positions, sell at full / ½ / ⅓ / ¼ ratio
- Conditional sell — batch set take-profit, stop-loss, or trailing stop orders
- Live positions — real-time quotes, multi-currency (USD / HKD / SGD), daily P/L
- i18n — 简体中文 · 繁體中文 · English
- Demo mode — full UI preview without a real account
| Layer | Technology |
|---|---|
| Backend | Node.js + Express |
| Frontend | Vanilla HTML / CSS / JS |
| Mac App | Tauri v2 (Rust + WKWebView) |
| Auto-update | tauri-plugin-updater (Sparkle on macOS) |
| Trading SDK | Longbridge OpenAPI Node.js SDK |
| Icons | Lucide |
| Fonts | Geist |
Double-click to open — no terminal needed. The server starts automatically in the background.
Prerequisites (one-time):
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/envBuild:
git clone https://github.com/therealechan/longbridge-liquidator-web.git
cd longbridge-liquidator-web
npm install
npx tauri buildOutput:
src-tauri/target/release/bundle/macos/LB Liquidator.app
src-tauri/target/release/bundle/dmg/LB Liquidator_x.x.x_aarch64.dmg
First build takes ~3–5 min (Rust compiling deps). Subsequent builds are fast.
Dev mode (faster iteration):
# Terminal 1
npm run dev
# Terminal 2
npx tauri devgit clone https://github.com/therealechan/longbridge-liquidator-web.git
cd longbridge-liquidator-web
npm install
npm start
# → http://127.0.0.1:3456Download the latest .dmg from the Releases page.
The app updates itself automatically — on launch it checks for newer versions and prompts you to install. You can also trigger it manually via LB Liquidator → Check for Updates… in the menu bar.
| Credential | Description |
|---|---|
| App Key | Application identifier |
| App Secret | Application secret |
| Access Token | API access token |
Get credentials from Longbridge Developer Center → User Center → App Credentials.
- Enter your Longbridge API credentials
- Click View Positions to load your current holdings
- Select positions to operate on (all selected by default)
- Choose an action:
- Liquidate — market sell selected positions at full / ½ / ⅓ / ¼
- Buy Back — market buy back previously liquidated positions
- Conditional Sell — batch set take-profit / stop-loss / trailing stop orders
- API credentials stored in browser localStorage — never leave your machine
- Server binds to
127.0.0.1only — not accessible from the network - Mac App embeds the server inside the
.appbundle — zero network exposure - Open source — audit the code yourself
本工具仅供学习交流,投资有风险,操作需谨慎。
This tool is for educational purposes only. Trading involves risk; proceed with caution.



