DataLive Preview
Asset Portfolio
Portfolio overview with total value, weighted 24h change, allocation bar with cross-hover, and asset list sorted by value.
portfolioallocationbalancechart
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
assets* | Asset[] | — | Assets with symbol, name, balance, price, value, change24h, color |
totalValue* | number | — | Total portfolio value in USD |
totalChange24h* | number | — | 24h portfolio change percentage |
onAssetClick | (asset: Asset) => void | — | Called when user clicks an asset |
className | string | — | Additional CSS classes |