From longbridge
Account statements (daily / monthly) via Longbridge Securities — list available statements and export sections (equity holdings, cash transactions, fees, etc.) as CSV or markdown for accounting, tax filing, or audit. Requires longbridge login with Trade scope. Read-only — no order placement here. Triggers: "对账单", "月结单", "日结单", "账单导出", "税务报表", "报税资料", "导出持仓", "导出交易记录", "對賬單", "月結單", "日結單", "賬單導出", "稅務報表", "報稅資料", "匯出持倉", "匯出交易紀錄", "account statement", "monthly statement", "daily statement", "export statement", "tax report", "tax filing", "statement export", "broker statement", "1099", "year-end statement".
npx claudepluginhub longbridge/skills --plugin longbridgeThis skill uses the workspace's default tool permissions.
Account statement listing and section export — for accounting, tax filing, and audit workflows.
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.
Account statement listing and section export — for accounting, tax filing, and audit workflows.
Response language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
Privacy: statements contain account-level holdings, cash flow, and fees. Only return details in direct conversation.
statement (default = list)statement --type dailystatement --type monthlystatement export --file-key <KEY> --section <SECTION>For trades / fills detail, prefer longbridge-orders. For live holdings / cash, prefer longbridge-positions.
Run
longbridge statement --helpandlongbridge statement export --helpif unsure of current flags / supported sections.
| CLI command | Returns |
|---|---|
longbridge statement --format json | List of available statements (alias for statement list) |
longbridge statement --type daily --format json | List of recent daily statements (default 30) |
longbridge statement --type monthly --format json | List of recent monthly statements (default 12) |
longbridge statement list --format json | Same as the bare command |
longbridge statement export --file-key <KEY> --section <SECTION> --format json | Export one statement section as CSV / markdown |
Common flags on the parent command:
| Flag | Default | Notes |
|---|---|---|
--type | daily | daily or monthly |
--start-date | 30 days ago | YYYY-MM-DD |
--limit | 30 (daily) / 12 (monthly) | Number of records |
longbridge statement --type ... --format json to see available statements; each row includes a file-key (or similar) identifier.longbridge statement export --file-key <KEY> --section <SECTION>. Confirm the filesystem location with the user before writing if the CLI streams to a path.Account statements require Trade scope. If unauthorized shows up, tell the user to:
longbridge auth logout && longbridge auth login
and re-tick "Trade" during the OAuth flow.
# List last 30 daily statements
longbridge statement --format json
# List last 12 monthly statements
longbridge statement --type monthly --format json
# Custom date window
longbridge statement --type daily --start-date 2026-01-01 --limit 90 --format json
# Export the equity-holdings section of one statement
longbridge statement export --file-key <KEY> --section equity_holdings --format json
Available
--sectionvalues vary by statement type and account. Runlongbridge statement export --helpfor the canonical list before guessing.
list mode: array of statement metadata rows (date, type, file-key, etc.).export mode: written-file path or inline CSV / markdown payload, depending on CLI version.When summarising, give a small table of dates + keys; never re-format the section contents themselves.
| Situation | LLM response |
|---|---|
Shell command not found: longbridge | Fall back to MCP if configured; otherwise tell the user to install longbridge-terminal. |
stderr contains not logged in / unauthorized | Tell the user to run longbridge auth logout && longbridge auth login and tick "Trade" scope. |
stderr not_found on export | Re-run the list step to confirm the file-key. |
| Empty list | "No statements available in the requested window — try widening --start-date or switching --type." |
| Other stderr | Surface verbatim — never silently retry. |
| CLI subcommand | MCP tool |
|---|---|
statement / statement list | mcp__longbridge__statement_list (or fall back via the equivalent MCP tool) |
statement export | mcp__longbridge__statement_export (or fall back via the equivalent MCP tool) |
If the exact MCP names differ, the CLI is the canonical path.
| User asks | Route to |
|---|---|
| Live holdings / cash balance | longbridge-positions |
| Today / historical orders / fills | longbridge-orders |
| Account-level P&L analysis | longbridge-portfolio |
| Multi-currency conversion for the statement | longbridge-fx |
longbridge-statement/
└── SKILL.md # prompt-only, no scripts/