back to home

longbridge / longbridge-terminal

AI-native CLI for the Longbridge trading platform with real-time market data, portfolio, and trading...

620 stars
41 forks
0 issues
RustTypeScriptShell

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing longbridge/longbridge-terminal in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/longbridge/longbridge-terminal)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Longbridge Terminal AI-native CLI for the Longbridge trading platform — real-time market data, portfolio, and trading. Covers 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. Also ships a full-screen TUI for interactive monitoring. Installation **Homebrew (macOS / Linux)** **Install script** Installs the binary to . Authentication Uses **OAuth 2.0** via the Longbridge SDK — no manual token management required. Token is shared between CLI and TUI. After , all commands work without re-authenticating. The CLI auto-detects China Mainland on each startup by probing in the background and caches the result. If detected, CN API endpoints are used automatically on the next run. CLI Usage All commands support for machine-readable output: Diagnostics Quotes News Options & Warrants Watchlist Trading Symbol Format Markets: (Hong Kong) · (United States) · / / (China A-share) · (Singapore) Skill Install the skill to give your AI tools full knowledge of all CLI commands: Once installed, Claude can query market data, run technical analysis, and manage trades directly from your AI workflow. TUI Features: real-time watchlist, candlestick charts, portfolio view, stock search, Vim-like keybindings. Output Format Rate Limits Longbridge OpenAPI: maximum 10 calls per second. The SDK auto-refreshes OAuth tokens. Requirements • macOS or Linux • Internet connection and browser access (for initial OAuth) • Longbridge account Documentation • Longbridge OpenAPI Docs • Rust SDK License MIT