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.
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 | |||