calculate_unrealized_pnl
Calculate unrealized profit and loss for a paper portfolio using live prices to track real-time performance.
Instructions
Paper portfolio P&L. Pass live_prices as {symbol: ltp} (e.g. from fetch_live_price) to include unrealized P&L.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live_prices | No |