longbridge-statement
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineselongbridge-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
适用场景
- "我最近的对账单", "上个月月结单" → (default = list)
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" → list first, then export the relevant section.
- "我绑定了哪些银行卡", "bank cards" →
bank-cards - "我的出金记录", "withdrawal history" →
withdrawals - "我的入金记录", "deposit history" →
deposits
For trades / fills detail, prefer . For live holdings / cash, prefer .
longbridge-orderslongbridge-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-orderslongbridge-positionsSubcommands
子命令
Runandlongbridge statement --helpif unsure of current flags / supported sections.longbridge statement export --help
| CLI command | Returns |
|---|---|
| List of available statements (alias for |
| List of recent daily statements (default 30) |
| List of recent monthly statements (default 12) |
| Same as the bare command |
| Export one statement section as CSV / markdown |
Common flags on the parent command:
| Flag | Default | Notes |
|---|---|---|
| | |
| 30 days ago | |
| 30 (daily) / 12 (monthly) | Number of records |
若不确定当前可用参数或支持的板块,请运行和longbridge statement --help。longbridge statement export --help
| CLI命令 | 返回内容 |
|---|---|
| 可用对账单列表( |
| 近期日结单列表(默认30条) |
| 近期月结单列表(默认12条) |
| 与直接运行 |
| 将指定对账单板块导出为CSV / markdown格式 |
父命令的通用参数:
| 参数 | 默认值 | 说明 |
|---|---|---|
| | 可选值为 |
| 30天前 | 格式为 |
| 30(日结单)/ 12(月结单) | 记录数量 |
Workflow
操作流程
- List first: run to see available statements; each row includes a
longbridge statement --type ... --format json(or similar) identifier.file-key - Pick the statement the user wants by date.
- Export the desired section: . Confirm the filesystem location with the user before writing if the CLI streams to a path.
longbridge statement export --file-key <KEY> --section <SECTION> - Surface the export path and section names; do not paraphrase or regenerate the contents — these are accounting source documents.
- 先列出对账单:运行查看可用对账单;每条记录包含
longbridge statement --type ... --format json(或类似)标识符。file-key - 根据日期选择用户需要的对账单。
- 导出指定板块:运行。若CLI会将内容写入路径,需先与用户确认文件系统位置。
longbridge statement export --file-key <KEY> --section <SECTION> - 告知用户导出路径及板块名称;请勿改写或重新生成内容——这些是会计原始凭证。
OAuth scope
OAuth权限
Account statements require Trade scope. If shows up, tell the user to:
unauthorizedbash
longbridge auth logout && longbridge auth loginand re-tick "Trade" during the OAuth flow.
获取账户对账单需要Trade权限。若出现提示,请告知用户执行:
unauthorizedbash
longbridge auth logout && longbridge auth login并在OAuth流程中重新勾选“Trade”权限。
CLI examples
CLI示例
bash
undefinedbash
undefinedList 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
输出结果
- mode: array of statement metadata rows (date, type,
list, etc.).file-key - mode: written-file path or inline CSV / markdown payload, depending on CLI version.
export
When summarising, give a small table of dates + keys; never re-format the section contents themselves.
- 模式:对账单元数据行数组(包含日期、类型、
list等)。file-key - 模式:写入文件的路径或内嵌的CSV / markdown内容,具体取决于CLI版本。
export
总结时,可提供包含日期和密钥的小型表格;切勿重新格式化板块内容本身。
Error handling
错误处理
| Situation | LLM response |
|---|---|
Shell | Fall back to MCP if configured; otherwise tell the user to install longbridge-terminal. |
stderr contains | Tell the user to run |
stderr | Re-run the |
| Empty list | "No statements available in the requested window — try widening |
| Other stderr | Surface verbatim — never silently retry. |
| 场景 | LLM响应 |
|---|---|
Shell提示 | 若已配置MCP则 fallback 至MCP;否则告知用户安装longbridge-terminal。 |
标准错误输出包含 | 告知用户运行 |
导出时标准错误输出 | 重新运行 |
| 列表为空 | "请求时间范围内无可用对账单——尝试扩大 |
| 其他标准错误输出 | 直接展示原始内容——切勿静默重试。 |
MCP fallback
MCP fallback
| CLI subcommand | MCP tool |
|---|---|
| |
| |
| |
| |
| |
If the exact MCP names differ, the CLI is the canonical path.
| CLI子命令 | MCP工具 |
|---|---|
| |
| |
| |
| |
| |
若MCP名称与上述不符,以CLI为准。
Related skills
相关技能
| User asks | Route to |
|---|---|
| Live holdings / cash balance | |
| Today / historical orders / fills | |
| Account-level P&L analysis | |
| Multi-currency conversion for the statement | |
| 用户提问 | 跳转至 |
|---|---|
| 实时持仓/现金余额 | |
| 当日/历史订单/成交记录 | |
| 账户级盈亏分析 | |
| 对账单多币种转换 | |
File layout
文件结构
longbridge-statement/
└── SKILL.md # prompt-only, no scripts/longbridge-statement/
└── SKILL.md # 仅包含提示信息,无scripts/目录