Loading...
Loading...
Compare original and translation side by side
longbridge-positionsResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.Privacy: returns the user's private P&L. Only render detailed numbers in direct conversation; if you suspect screen-sharing or third-party observation, ask before showing exact figures. Never echo amounts into PR descriptions, tickets, or other places third parties can read.
longbridge-positions响应语言:匹配用户输入语言——简体中文 / 繁体中文 / 英文。隐私说明:返回用户的私人盈亏数据。仅在直接对话中展示详细数字;若怀疑存在屏幕共享或第三方观察,需先询问再显示具体数值。切勿将金额内容同步到PR描述、工单或其他第三方可查看的场所。
longbridge auth login # check "trade" / 「交易」 permission in the browser auth screenclaude mcp logout longbridgelongbridge auth login # 在浏览器授权界面勾选「交易」权限claude mcp logout longbridgeundefinedundefined| Phrase | Window |
|---|---|
| 本月 / this month | first day of this month → today |
| 本周 / this week | this Monday → today |
| 近 30 天 / past 30 days | |
| 今年 / YTD | Jan 1 → today |
| 全部 / since opening / no time | use |
| 表述 | 时间范围 |
|---|---|
| 本月 / this month | 当月第一天 → 今日 |
| 本周 / this week | 本周一 → 今日 |
| 近30天 / past 30 days | |
| 今年 / YTD | 1月1日 → 今日 |
| 全部 / since opening / 无时间限定 | 使用 |
| User intent | Tools |
|---|---|
| Full portfolio overview | |
| This month's P&L | |
| Biggest contributors | |
| Currency exposure | |
| Industry distribution | |
| Short-selling margin details | |
| 用户意图 | 使用工具 |
|---|---|
| 组合全景概览 | |
| 本月盈亏 | |
| 最大贡献个股 | |
| 货币敞口 | |
| 行业分布 | |
| 卖空保证金详情 | |
longbridge <subcommand> --helplongbridge profit-analysis --start 2026-05-01 --end 2026-05-06 --format json
longbridge profit-analysis detail --start 2026-05-01 --end 2026-05-06 --format json
longbridge assets --format json
longbridge positions --format json
longbridge exchange-rate --format jsonlongbridge portfolio short-margin --format json # per-position margin deposit breakdownlongbridge <subcommand> --helplongbridge profit-analysis --start 2026-05-01 --end 2026-05-06 --format json
longbridge profit-analysis detail --start 2026-05-01 --end 2026-05-06 --format json
longbridge assets --format json
longbridge positions --format json
longbridge exchange-rate --format jsonlongbridge portfolio short-margin --format json # 逐持仓保证金明细longbridgeexchange_rateprofit_analysislongbridgeexchange_rateprofit_analysisMy account performance — Source: Longbridge Securities; period YYYY-MM-DD ~ YYYY-MM-DD
[1. Overview]
- Total NAV (USD-equivalent): $X
- Cash: $X (Y% of NAV)
- Holdings: $X (Y% of NAV)
- Period P&L: +$X (+Y%)
[2. Currency exposure]
- USD: $X
- HKD: HK$X (≈ $X USD)
- CNY: ¥X (≈ $X USD)
- SGD: S$X (if held)
[3. Single-stock contribution (this period)]
| Symbol | Name | P&L (USD-eq) | Share |
|---|---|---:|---:|
| NVDA.US | NVIDIA | +$5,200 | 42% |
| 700.HK | 腾讯 | +$3,100 | 25% |
| TSLA.US | Tesla | -$1,800 | -15% |
| ... | ... | ... | ... |
[4. Industry distribution] (stock_positions × static_info industry field, by market value)
- 半导体 / Semiconductors: 35%
- 互联网 / Internet: 20%
- ...
⚠️ 以上数据仅供参考,不构成调仓建议。/ 以上數據僅供參考,不構成調倉建議。/ For reference only. Not rebalancing advice.我的账户表现 — 来源:Longbridge Securities;时段 YYYY-MM-DD ~ YYYY-MM-DD
[1. 概览]
- 总净值(美元等值):$X
- 现金:$X(占净值Y%)
- 持仓:$X(占净值Y%)
- 时段盈亏:+$X(+Y%)
[2. 货币敞口]
- 美元:$X
- 港币:HK$X(≈ $X 美元)
- 人民币:¥X(≈ $X 美元)
- 新加坡元:S$X(若持有)
[3. 个股贡献(本时段)]
| 代码 | 名称 | 盈亏(美元等值) | 占比 |
|---|---|---:|---:|
| NVDA.US | NVIDIA | +$5,200 | 42% |
| 700.HK | 腾讯 | +$3,100 | 25% |
| TSLA.US | Tesla | -$1,800 | -15% |
| ... | ... | ... | ... |
[4. 行业分布](基于stock_positions × static_info行业字段,按市值计算)
- 半导体 / Semiconductors: 35%
- 互联网 / Internet: 20%
- ...
⚠️ 以上数据仅供参考,不构成调仓建议。/ 以上數據僅供參考,不構成調倉建議。/ For reference only. Not rebalancing advice.static_infostatic_info≈≈| Situation | Reply |
|---|---|
| Fall back to MCP; if MCP also unavailable, tell user to install longbridge-terminal. |
stderr | Tell user to run |
| "{window}: no recorded P&L (account had no positions or no trades)." |
| Skip the multi-currency section; show that one currency. |
| Skip sections 3 + 4; show cash-only overview. |
| 场景 | 回复内容 |
|---|---|
| 降级使用MCP;若MCP也不可用,告知用户安装longbridge-terminal。 |
标准错误输出 | 告知用户运行 |
| "{window}: 无记录的盈亏数据(账户无持仓或无交易)。" |
| 跳过多货币部分,仅展示该种货币。 |
| 跳过第3和第4部分,仅展示现金概览。 |
longbridgecommand not found| MCP tool | CLI equivalent | Scope |
|---|---|---|
| | trade |
| | trade |
| | trade |
| | trade |
| | trade |
| | quote |
| | quote |
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcplongbridgecommand not found| MCP工具 | 对应CLI命令 | 权限范围 |
|---|---|---|
| | 交易 |
| | 交易 |
| | 交易 |
| | 交易 |
| | 交易 |
| | 行情 |
| | 行情 |
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcplongbridge-positionslongbridge-quotelongbridge-valuationlongbridge-fundamentallongbridge-newslongbridge-valuationlongbridge-fundamentallongbridge-positionslongbridge-quotelongbridge-valuationlongbridge-fundamentallongbridge-newslongbridge-valuationlongbridge-fundamentallongbridge-portfolio/
└── SKILL.md # prompt-only, no scripts/longbridge-portfolio/
└── SKILL.md # 纯Prompt技能,无scripts目录/
```",