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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_unrealized_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live_prices | No |