longbridge-statement

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

longbridge-statement

longbridge-statement

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.
账户对账单列表及板块导出——适用于会计、报税和审计工作流程。
响应语言:匹配用户输入语言——简体中文 / 繁体中文 / 英文。
隐私说明:对账单包含账户级持仓、现金流及费用信息。仅可在直接对话中返回详情。

When to use

适用场景

  • "我最近的对账单", "上个月月结单"
    statement
    (default = list)
  • "日结单", "daily statement"
    statement --type daily
  • "月结单", "monthly statement"
    statement --type monthly
  • "导出某月对账单 CSV", "export equity holdings"
    statement export --file-key <KEY> --section <SECTION>
  • "报税要交易明细", "tax report data" → list first, then export the relevant section.
  • "我绑定了哪些银行卡", "bank cards"
    bank-cards
  • "我的出金记录", "withdrawal history"
    withdrawals
  • "我的入金记录", "deposit history"
    deposits
For trades / fills detail, prefer
longbridge-orders
. For live holdings / cash, prefer
longbridge-positions
.
  • "我最近的对账单", "上个月月结单"
    statement
    (默认=列表)
  • "日结单", "daily statement"
    statement --type daily
  • "月结单", "monthly statement"
    statement --type monthly
  • "导出某月对账单 CSV", "export equity holdings"
    statement export --file-key <KEY> --section <SECTION>
  • "报税要交易明细", "tax report data" → 先列出对账单,再导出相关板块。
  • "我绑定了哪些银行卡", "bank cards"
    bank-cards
  • "我的出金记录", "withdrawal history"
    withdrawals
  • "我的入金记录", "deposit history"
    deposits
若需交易/成交明细,请使用
longbridge-orders
。若需实时持仓/现金余额,请使用
longbridge-positions

Subcommands

子命令

Run
longbridge statement --help
and
longbridge statement export --help
if unsure of current flags / supported sections.
CLI commandReturns
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:
FlagDefaultNotes
--type
daily
daily
or
monthly
--start-date
30 days ago
YYYY-MM-DD
--limit
30 (daily) / 12 (monthly)Number of records
若不确定当前可用参数或支持的板块,请运行
longbridge statement --help
longbridge statement export --help
CLI命令返回内容
longbridge statement --format json
可用对账单列表(
statement list
的别名)
longbridge statement --type daily --format json
近期日结单列表(默认30条)
longbridge statement --type monthly --format json
近期月结单列表(默认12条)
longbridge statement list --format json
与直接运行
statement
命令效果一致
longbridge statement export --file-key <KEY> --section <SECTION> --format json
将指定对账单板块导出为CSV / markdown格式
父命令的通用参数:
参数默认值说明
--type
daily
可选值为
daily
monthly
--start-date
30天前格式为
YYYY-MM-DD
--limit
30(日结单)/ 12(月结单)记录数量

Workflow

操作流程

  1. List first: run
    longbridge statement --type ... --format json
    to see available statements; each row includes a
    file-key
    (or similar) identifier.
  2. Pick the statement the user wants by date.
  3. Export the desired section:
    longbridge statement export --file-key <KEY> --section <SECTION>
    . Confirm the filesystem location with the user before writing if the CLI streams to a path.
  4. Surface the export path and section names; do not paraphrase or regenerate the contents — these are accounting source documents.
  1. 先列出对账单:运行
    longbridge statement --type ... --format json
    查看可用对账单;每条记录包含
    file-key
    (或类似)标识符。
  2. 根据日期选择用户需要的对账单。
  3. 导出指定板块:运行
    longbridge statement export --file-key <KEY> --section <SECTION>
    。若CLI会将内容写入路径,需先与用户确认文件系统位置。
  4. 告知用户导出路径及板块名称;请勿改写或重新生成内容——这些是会计原始凭证。

OAuth scope

OAuth权限

Account statements require Trade scope. If
unauthorized
shows up, tell the user to:
bash
longbridge auth logout && longbridge auth login
and re-tick "Trade" during the OAuth flow.
获取账户对账单需要Trade权限。若出现
unauthorized
提示,请告知用户执行:
bash
longbridge auth logout && longbridge auth login
并在OAuth流程中重新勾选“Trade”权限。

CLI examples

CLI示例

bash
undefined
bash
undefined

List last 30 daily statements

列出最近30条日结单

longbridge statement --format json
longbridge statement --format json

List last 12 monthly statements

列出最近12条月结单

longbridge statement --type monthly --format json
longbridge statement --type monthly --format json

Custom date window

自定义日期范围

longbridge statement --type daily --start-date 2026-01-01 --limit 90 --format json
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
longbridge statement export --file-key <KEY> --section equity_holdings --format json

Bank cards linked to the account

查询账户关联银行卡

longbridge bank-cards --format json
longbridge bank-cards --format json

Withdrawal history (paginated)

查询出金记录(分页)

longbridge withdrawals --format json longbridge withdrawals --page 2 --count 50 --format json
longbridge withdrawals --format json longbridge withdrawals --page 2 --count 50 --format json

Deposit history (with filters)

查询入金记录(带筛选条件)

longbridge deposits --format json longbridge deposits --states 1 --currencies HKD,USD --format json # credited, HKD+USD only

> Available `--section` values vary by statement type and account. Run `longbridge statement export --help` for the canonical list before guessing.
longbridge deposits --format json longbridge deposits --states 1 --currencies HKD,USD --format json # 仅查询已到账的港币和美元入金

> 可用的`--section`值因对账单类型和账户而异。在猜测前请运行`longbridge statement export --help`查看官方列表。

Output

输出结果

  • 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.
  • list
    模式:对账单元数据行数组(包含日期、类型、
    file-key
    等)。
  • export
    模式:写入文件的路径或内嵌的CSV / markdown内容,具体取决于CLI版本。
总结时,可提供包含日期和密钥的小型表格;切勿重新格式化板块内容本身。

Error handling

错误处理

SituationLLM 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 stderrSurface verbatim — never silently retry.
场景LLM响应
Shell提示
command not found: longbridge
若已配置MCP则 fallback 至MCP;否则告知用户安装longbridge-terminal。
标准错误输出包含
not logged in
/
unauthorized
告知用户运行
longbridge auth logout && longbridge auth login
并勾选“Trade”权限。
导出时标准错误输出
not_found
重新运行
list
步骤确认
file-key
是否正确。
列表为空"请求时间范围内无可用对账单——尝试扩大
--start-date
范围或切换
--type
类型。"
其他标准错误输出直接展示原始内容——切勿静默重试。

MCP fallback

MCP fallback

CLI subcommandMCP 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)
bank-cards
mcp__longbridge__bank_cards
withdrawals
mcp__longbridge__withdrawals
deposits
mcp__longbridge__deposits
If the exact MCP names differ, the CLI is the canonical path.
CLI子命令MCP工具
statement
/
statement list
mcp__longbridge__statement_list
(或使用等效MCP工具作为备选)
statement export
mcp__longbridge__statement_export
(或使用等效MCP工具作为备选)
bank-cards
mcp__longbridge__bank_cards
withdrawals
mcp__longbridge__withdrawals
deposits
mcp__longbridge__deposits
若MCP名称与上述不符,以CLI为准。

Related skills

相关技能

User asksRoute 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-positions
当日/历史订单/成交记录
longbridge-orders
账户级盈亏分析
longbridge-portfolio
对账单多币种转换
longbridge-fx

File layout

文件结构

longbridge-statement/
└── SKILL.md          # prompt-only, no scripts/
longbridge-statement/
└── SKILL.md          # 仅包含提示信息,无scripts/目录