longbridge profit-analysis
分析盈虧——整體損益摘要、個股明細、單隻股票的交易流水詳情,以及按市場篩選的視圖。
基本用法
bash
longbridge profit-analysisP&L Summary (USD) 2023-12-04 ~ 2026-04-17
Total Asset 125413.01
Initial Asset 0.00
Ending Asset 125413.01
Invest Amount 76997.11
Total P&L 48415.89
Stocks Traded 12
Simple Yield 62.88%
TWR 58.41%
Stock P&L 47203.15
Fund P&L 1212.74
MMF P&L 0.00
P&L Breakdown
| Symbol | Name | Market | P&L |
|---------|------------|--------|---------|
| 9988.HK | 阿里巴巴-W | HK | 18406.9 |
| AAPL.US | 蘋果 | US | 6498.14 |示例
指定日期範圍的損益摘要
bash
longbridge profit-analysis
longbridge profit-analysis --start 2026-01-01 --end 2026-04-17
longbridge profit-analysis --format json不加 --start/--end 時,展示完整帳戶歷史。指定日期範圍後,彙總資料和明細均按該範圍篩選。Simple Yield 和 TWR 以百分比顯示。
單隻股票損益詳情
bash
longbridge profit-analysis detail TSLA.US
longbridge profit-analysis detail 700.HK --currency HKD展示指定股票的詳細損益——正股及衍生品持倉的買入/賣出/費用明細,以及交易流水記錄。
篩選衍生品流水
bash
longbridge profit-analysis detail TSLA.US --derivative交易流水分頁
bash
longbridge profit-analysis detail TSLA.US --page 2 --size 20按市場查看損益
bash
longbridge profit-analysis by-market HK
longbridge profit-analysis by-market US --size 50展示按市場篩選的個股損益,支援分頁。
權限要求
需要 OAuth 帳戶權限。參見帳戶權限設置。