longbridge-capital-flow

Original🇺🇸 English
Translated

Intraday capital-flow time series and large/medium/small order distribution for a single stock via Longbridge Securities. Same-day data only (no historical range). Triggers: "资金流向", "主力资金", "净流入", "大单", "中单", "小单", "资金分布", "机构资金", "主力净流入", "資金流向", "主力資金", "淨流入", "大單", "中單", "小單", "資金分佈", "機構資金", "capital flow", "money flow", "net inflow", "large order distribution", "institutional flow".

3installs
Added on

NPX Install

npx skill4agent add longbridge/skills longbridge-capital-flow

longbridge-capital-flow

Today's capital flow time-series and order-size distribution for a single security.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.

Subcommands

A single
capital
command handles both modes — distribution snapshot (default) and time-series (
--flow
). Run
longbridge capital --help
to confirm.
CLI commandReturns
longbridge capital <SYMBOL> --format json
Cross-section snapshot: large / medium / small / super-large order buy & sell amounts.
longbridge capital <SYMBOL> --flow --format json
Today's main-capital net inflow / outflow time series.
Single symbol per call. Today's data only — no historical range.

When to use

  • "今天 NVDA 主力净流入", "今日資金流"
    capital --flow
  • "看下 TSLA 大单分布", "大單/中單/小單"
    capital
    (default snapshot)
  • "看一下 700 资金面" (combined) → call both (with and without
    --flow
    ) and merge
  • "过去 30 天资金流" → unsupported; redirect to
    longbridge-kline
    (volume) or
    longbridge-quote
    (
    --index volume
    )
  • "今天哪些股票主力大幅流入" (screener) → unsupported; ask user for a specific symbol

Workflow

  1. Resolve a single symbol to
    <CODE>.<MARKET>
    .
  2. Decide which mode: distribution snapshot (default), time-series (
    --flow
    ), or both.
  3. Call the Longbridge CLI directly (preferred) or fall back to MCP.
  4. Summarise: net inflow direction (▲ / ▼), accumulated total, distribution skew. Cite Longbridge Securities.

CLI

bash
longbridge capital NVDA.US                  --format json     # snapshot
longbridge capital TSLA.US --flow           --format json     # time series
# Combined view → call both and merge in the LLM

Output

The default snapshot returns a cross-section object;
--flow
returns a time-series array.
Field translations (LLM should map):
Field (likely)简体繁體English
large_in / large_out
大单流入/流出大單流入/流出Large order in/out
medium_in / medium_out
中单流入/流出中單流入/流出Medium order in/out
small_in / small_out
小单流入/流出小單流入/流出Small order in/out
super_in / super_out
超大单流入/流出超大單流入/流出Super-large order in/out
(Field names follow Longbridge JSON; LLM maps to the user's language.)

Error handling

If
longbridge
is missing, fall back to MCP. Other stderr messages get relayed verbatim (auth issues →
longbridge auth login
; invalid symbol → re-check format).

MCP fallback

CLI usageMCP tool
capital <SYMBOL>
(snapshot)
mcp__longbridge__capital_distribution
capital <SYMBOL> --flow
(time series)
mcp__longbridge__capital_flow

Related skills

  • Quote / change / volume →
    longbridge-quote
  • Candlesticks / volume history →
    longbridge-kline
  • Orderbook microstructure →
    longbridge-depth

File layout

longbridge-capital-flow/
└── SKILL.md          # prompt-only, no scripts/