Get portfolio rate sensitivity
get_portfolio_rate_sensitivityWhen to use: the caller wants duration, or how this portfolio changes when rates move.
Inputs: portfolio_id from list_portfolios. The caller's token is the owner scope. Do not pass a user id or a symbol list. The route reads the bond funds and rate-sensitive stocks on that portfolio.
What comes back: the route JSON, unchanged. duration is in years. dv01 is the book-currency change for a 1 basis point rise, and a negative number means the book loses value. value_change is the book-currency change for shock_bp, the parallel rise the route used. lines name each contribution. A portfolio the token does not own is the same not-found answer as a missing id.
Args:
portfolio_id: The portfolio UUID from list_portfolios
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_rate_sensitivity"
}
}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 |