From longbridge
Candlestick / OHLCV data and intraday minute series for stocks listed in HK / US / A-share / Singapore via Longbridge Securities. Supports 1m / 5m / 15m / 30m / 1h / day / week / month / year periods, history by date range, and today's intraday curve. Triggers: "K线", "K 线", "走势", "历史价格", "日K", "月K", "周K", "分时图", "近一周走势", "K線", "走勢", "歷史價格", "日K", "月K", "週K", "分時圖", "candlestick", "candles", "OHLCV", "intraday chart", "price history", "weekly chart", "monthly chart", "1-year chart", "前复权", "前復權", "forward adjusted".
npx claudepluginhub longbridge/skills --plugin longbridgeThis skill uses the workspace's default tool permissions.
Historical candlesticks and today's intraday curve for Longbridge-supported securities (HK / US / A-share / Singapore). Does **not** support options, warrants, or indices — defer to `longbridge-derivatives` (derivatives) or `longbridge-quote` (indices).
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Historical candlesticks and today's intraday curve for Longbridge-supported securities (HK / US / A-share / Singapore). Does not support options, warrants, or indices — defer to longbridge-derivatives (derivatives) or longbridge-quote (indices).
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Run
longbridge kline --helpto confirm current period values, defaults, and aliases.
| CLI command | Use when |
|---|---|
longbridge kline <SYMBOL> --period <P> --count <N> --format json | Latest N candles. Periods: 1m / 5m / 15m / 30m / 1h / day / week / month / year. |
longbridge kline history <SYMBOL> --start YYYY-MM-DD --end YYYY-MM-DD --period <P> --format json | OHLCV across an explicit date range (sub-subcommand). |
longbridge intraday <SYMBOL> --format json | Today's per-minute curve (price + volume + avg_price). |
Period aliases: minute=1m, hour=1h, d/1d=day, w=week, m/1mo=month, y=year. --adjust none (default) or --adjust forward for 前复权 / 前復權.
kline --period daykline --period 5m --count 100intradaykline history --start --end--adjust forward<CODE>.<MARKET> (see longbridge-quote for the rules).kline history.intraday.kline with sensible defaults (--period day --count 100).period, count). Examples: "最近一周" → day,7, "最近一年" → day,252, "月 K" → month,100.longbridge kline NVDA.US --period day --count 100 --format json
longbridge kline 700.HK --period 5m --count 100 --adjust forward --format json
longbridge kline history NVDA.US --start 2025-01-01 --end 2025-12-31 --format json
longbridge intraday 700.HK --format json
longbridge kline ... --format json returns a list of OHLCV rows:
[
{"time": "...", "open": "...", "high": "...", "low": "...", "close": "...", "volume": "...", "turnover": "..."}
]
intraday rows are {time, price, volume, turnover, avg_price}.
If longbridge is not installed, the shell returns a command not found error → fall back to MCP (see below) or tell the user to install longbridge-terminal. If longbridge prints Error: ... to stderr, surface the message to the user — common causes:
Error: not logged in / unauthorized → user runs longbridge auth login.Error: invalid symbol / param_error → re-check the <CODE>.<MARKET> format.| CLI subcommand | MCP tool |
|---|---|
kline | mcp__longbridge__candlesticks |
kline history | mcp__longbridge__history_candlesticks_by_offset or mcp__longbridge__history_candlesticks_by_date |
intraday | mcp__longbridge__intraday |
longbridge-quotelongbridge-depthlongbridge-capital-flowlongbridge-kline/
└── SKILL.md # prompt-only, no scripts/