Loading...
Loading...
Asset allocation and portfolio optimisation via Longbridge — efficient frontier (MPT), Black-Litterman model overview, risk parity / risk budgeting, all-weather strategy, and practical allocation recommendations based on the user's Longbridge account data. Triggers: "资产配置", "组合优化", "有效前沿", "Black-Litterman", "风险预算", "风险平价", "全天候策略", "大类资产", "資產配置", "組合優化", "有效前沿", "風險預算", "風險平價", "全天候策略", "大類資產", "asset allocation", "portfolio optimization", "efficient frontier", "Black-Litterman", "risk parity", "all-weather strategy", "mean-variance optimization", "strategic allocation".
npx skill4agent add longbridge/skills longbridge-asset-allocationResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
longbridge <subcommand> --help# Current holdings (if user is logged in)
longbridge portfolio --format json
longbridge positions --format json
# 252-day daily price history for each holding (run concurrently; ~1 year for covariance)
longbridge kline <SYMBOL> --period day --count 252 --format json
# Optional: valuation context
longbridge calc-index <SYMBOL> --format jsonAsset Allocation Analysis — Source: Longbridge Securities
Framework: <MPT / Black-Litterman / Risk Parity / All-Weather / Practical>
Date: <today>
[Current Portfolio]
Asset Weight Expected Return Volatility (ann.)
<symbol> <N>% <N>% <N>%
...
[Suggested Allocation — <Framework>]
Asset Target Weight Rationale
<symbol> <N>% <reason>
...
[Key Metrics]
- Portfolio expected return (ann.): N%
- Portfolio volatility (ann.): N%
- Sharpe ratio (rf=4%): N
[Caveats]
- Historical returns do not guarantee future results.
- Covariance estimates are noisy over short windows.
- <framework-specific caveats>
⚠️ 仅供参考,不构成投资建议。/ 僅供參考,不構成投資建議。/ For reference only. Not investment advice.| Situation | 简体回复 | 繁體回復 | English reply |
|---|---|---|---|
| 回退到 MCP;若也不可用,请安装 longbridge-terminal | 回退到 MCP;若也不可用,請安裝 longbridge-terminal | Fall back to MCP; if unavailable, install longbridge-terminal. |
stderr | 未登录时将使用用户指定的标的做示例分析 | 未登入時將使用用戶指定的標的做示例分析 | Not logged in — will analyse user-specified symbols instead. |
| Price history < 60 days | 数据不足,降级为简单波动率估算 | 數據不足,降級為簡單波動率估算 | Insufficient history; degrade to simple volatility estimate. |
| No positions and no symbols given | 请提供要分析的标的或登录账户 | 請提供要分析的標的或登入賬戶 | Please provide symbols to analyse or log in to your account. |
longbridge| MCP tool | CLI equivalent |
|---|---|
| |
| |
| |
| |
claude mcp add --transport http longbridge https://openapi.longbridge.com/mcpquotetrade_readlongbridge-portfolio-rebalancelongbridge-portfolio-diagnosislongbridge-risk-analysislongbridge-asset-allocation/
└── SKILL.md # prompt-only, no scripts/