Loading...
Loading...
Account-level profit and loss analysis via Longbridge Securities — simple return, time-weighted return (TWR), per-symbol P&L breakdown, and P&L by market. Supports custom date ranges. More focused on performance attribution than longbridge-portfolio. Requires login. Triggers: "盈亏分析", "账户盈亏", "时间加权收益", "TWR", "投资回报率", "持仓盈亏", "分市场盈亏", "业绩分析", "收益率分析", "盈虧分析", "賬戶盈虧", "時間加權收益", "投資回報率", "持倉盈虧", "profit analysis", "P&L analysis", "time-weighted return", "TWR", "account performance", "holding P&L", "profit by market", "investment return analysis", "我账户赚了多少", "我的亏损", "我賺了多少", "我的虧損".
npx skill4agent add longbridge/skills longbridge-profit-analysisResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
longbridge-portfoliolongbridge auth login--format json--helplongbridge profit-analysis --help# Overall account P&L with TWR (default: YTD or account lifetime)
longbridge profit-analysis --format json
# Custom date range
longbridge profit-analysis --start 2026-01-01 --end 2026-04-30 --format json
# Per-symbol P&L detail
longbridge profit-analysis detail TSLA.US --format json
# P&L broken down by market
longbridge profit-analysis by-market --market HK --format json
# Check available flags and subcommands
longbridge profit-analysis --help| Field | 简体 | 繁體 | English |
|---|---|---|---|
| 简单收益率 | 簡單收益率 | Simple return |
| 时间加权收益率 | 時間加權收益率 | Time-weighted return (TWR) |
| 总盈亏 | 總盈虧 | Total P&L |
| 已实现盈亏 | 已實現盈虧 | Realized P&L |
| 未实现盈亏 | 未實現盈虧 | Unrealized P&L |
| 统计期间 | 統計期間 | Period |
⚠️ 以上数据仅供参考,不构成投资建议。/ 以上數據僅供參考,不構成投資建議。/ For reference only. Not investment advice.
| Situation | 简体 | 繁體 | English |
|---|---|---|---|
| 退回 MCP;如未配置,提示安装 longbridge-terminal | 退回 MCP;如未設定,提示安裝 longbridge-terminal | Fall back to MCP; if unavailable, ask user to install longbridge-terminal |
| 请运行 | 請執行 | Run |
| Empty result (no trade history) | 账户暂无交易记录,无法计算盈亏 | 賬戶暫無交易記錄,無法計算盈虧 | No trade history found — cannot compute P&L |
| Invalid date range | 日期格式须为 YYYY-MM-DD,开始日期须早于结束日期 | 日期格式須為 YYYY-MM-DD,開始日期須早於結束日期 | Date must be YYYY-MM-DD; start must precede end |
| Other stderr | 原文转达,不做静默重试 | 原文轉達,不作靜默重試 | Relay verbatim; never retry silently |
longbridge| CLI usage | MCP tool |
|---|---|
| |
| |
| |
longbridge-portfoliolongbridge-positionslongbridge-orderslongbridge-statementlongbridge-profit-analysis/
└── SKILL.md # prompt-only, no scripts/