Get portfolio statistics
get_portfolio_statisticsGet portfolio performance statistics (returns, allocation, risk).
gross_exposure and net_exposure are in book currency. A weight may be
negative. dividend_income is cash by stock and can be negative when a
short owes the dividend. total_gain is unrealized_pnl + realized_pnl.
Do not add dividend_income on top of total_gain.
Args:
portfolio_id: The portfolio UUID
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"portfolio_id": "<portfolio_id>"
},
"name": "get_portfolio_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy_id | No | Strategy this call belongs to. UUID from list_strategies. The card this call writes keeps that id. Omit when the call is not part of a strategy. | |
| portfolio_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |