calculate_unrealized_pnl
Compute unrealized profit and loss for a paper portfolio. Provide live prices to include current market valuations.
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 |