Get portfolio
portfolioList open positions with live prices and unrealized P&L to track your paper trading account's performance.
Instructions
List an account's open positions with live prices and unrealized P&L.
Reads the local account and prices positions with live market data. Use get_balance for cash totals, history for past trades, or stats for performance metrics.
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": "portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Paper account name; any name without '/', '\', '..' or surrounding spaces. Each name is a separate local account. Default 'default'. | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |