Loading...
Loading...
Longbridge CLI expert for querying US and HK stock market data, executing trades, and managing watchlists via the `longbridge` command. Use when the user wants to: (1) Query real-time or historical stock quotes (TSLA.US, 700.HK, 600519.SH), (2) Get candlestick/kline data for any timeframe, (3) View order book depth, trades, intraday data, (4) Query options/warrants, (5) Submit buy/sell orders, manage positions, check balance, (6) Manage watchlists, (7) Get market info (trading sessions, calendar, market temperature), (8) Fetch news, regulatory filings, or community topics for a symbol. Triggers on any request involving stock symbols, market data, trading operations, or `longbridge` CLI usage.
npx skill4agent add longbridge/longbridge-terminal longbridgelongbridge login # Opens browser OAuth flow; token saved to ~/.longbridge/terminal/.openapi-session
longbridge logout # Clear token
longbridge check # Verify token, region, and API endpoint connectivity (no auth required)geotest.lbkrs.com~/.longbridge-openapi/region-cache<CODE>.<MARKET>| Market | Examples |
|---|---|
| |
| |
| |
| |
--format table # Human-readable (default)
--format json # Machine-readable for AI agents and scripts# Diagnostics
longbridge check
# News, filings, and community topics
longbridge news TSLA.US
longbridge news-detail <id>
longbridge filings AAPL.US
longbridge topics TSLA.US
longbridge topic-detail <id>
# Real-time quote
longbridge quote TSLA.US 700.HK AAPL.US
# Daily candlesticks (last 100)
longbridge kline TSLA.US --period day --count 100
# Historical data by date range
longbridge kline-history TSLA.US --start 2024-01-01 --end 2024-12-31
# Order book depth
longbridge depth TSLA.US
# Account positions
longbridge positions
# Today's orders
longbridge orders
# Submit a limit buy order
longbridge buy TSLA.US 100 --price 250.00
# Submit a market sell order
longbridge sell AAPL.US 50 --order-type MO