portfolio_value
Calculate the current value of a crypto portfolio from a map of coin holdings. Returns the total in USD or any specified fiat currency.
Instructions
Calculate the current USD value of a crypto portfolio.
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": {
"holdings": "<holdings>"
},
"name": "portfolio_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Your CryptoSense API key. | |
| currency | No | Fiat currency for valuation (default: "usd"). | usd |
| holdings | Yes | Dict mapping coin ID to amount, e.g. {"bitcoin": 0.5, "ethereum": 2}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||