leapcat-portfolio
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLeapCat Portfolio Skill
LeapCat 投资组合技能
View portfolio overview and stock positions using the leapcat. These are read-only commands for checking the user's current holdings and performance.
通过leapcat查看投资组合概览和股票持仓。这些是只读命令,用于查询用户当前的持仓和收益表现。
Prerequisites
前置条件
- Node.js 18+ is required (commands use which auto-downloads the CLI)
npx leapcat@latest - User must be authenticated — run first
npx leapcat@latest auth login --email <email>
- 需要安装 Node.js 18+ 版本(命令使用会自动下载CLI)
npx leapcat@latest - 用户必须完成身份验证 — 请先运行
npx leapcat@latest auth login --email <email>
Commands
命令
portfolio overview
投资组合概览
Get a high-level summary of the user's portfolio including total value, profit/loss, and asset allocation.
bash
npx leapcat@latest portfolio overview --json获取用户投资组合的高层摘要,包括总价值、盈亏情况和资产配置。
bash
npx leapcat@latest portfolio overview --jsonportfolio positions
投资组合持仓
List all current stock positions with details such as symbol, quantity, average cost, current price, and unrealized P&L.
bash
npx leapcat@latest portfolio positions --json列出所有当前股票持仓的详细信息,包括代码、持仓数量、平均成本、当前价格和浮盈浮亏。
bash
npx leapcat@latest portfolio positions --jsonWorkflow
工作流程
- Check portfolio overview — Run to get a summary of total portfolio value and performance.
portfolio overview --json - View positions — Run to see individual stock holdings and their current status.
portfolio positions --json - Cross-reference with market data — Use to get real-time prices for specific positions.
market quote --symbol <symbol> --exchange <exchange> --json
- 查看投资组合概览 — 运行获取投资组合总价值和表现的摘要。
portfolio overview --json - 查看持仓 — 运行查看单只股票持仓及其当前状态。
portfolio positions --json - 与市场数据交叉比对 — 使用获取特定持仓的实时价格。
market quote --symbol <symbol> --exchange <exchange> --json
Error Handling
错误处理
| Error | Cause | Resolution |
|---|---|---|
| Session expired | Re-authenticate with |
| Auth token has expired | Run |
| 错误 | 原因 | 解决方案 |
|---|---|---|
| 会话过期 | 运行 |
| 身份验证令牌已过期 | 运行 |