diff --git a/CHANGELOG.md b/CHANGELOG.md index eaca8f74..dfba98d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Added an icon and name column to the positions table + ### Changed - Changed the data gathering by symbol endpoint to delete data first diff --git a/apps/api/src/app/portfolio/portfolio.controller.ts b/apps/api/src/app/portfolio/portfolio.controller.ts index e61ab79e..ee11e4d1 100644 --- a/apps/api/src/app/portfolio/portfolio.controller.ts +++ b/apps/api/src/app/portfolio/portfolio.controller.ts @@ -346,6 +346,7 @@ export class PortfolioController { netPerformancePercent: portfolioPosition.netPerformancePercent, sectors: hasDetails ? portfolioPosition.sectors : [], symbol: portfolioPosition.symbol, + url: portfolioPosition.url, value: portfolioPosition.value / totalValue }; } diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 10d492f5..b7f9248b 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -441,6 +441,7 @@ export class PortfolioService { sectors: symbolProfile.sectors, symbol: item.symbol, transactionCount: item.transactionCount, + url: symbolProfile.url, value: value.toNumber() }; } diff --git a/apps/client/src/app/components/positions-table/positions-table.component.html b/apps/client/src/app/components/positions-table/positions-table.component.html index 524e54c0..3d9ac93e 100644 --- a/apps/client/src/app/components/positions-table/positions-table.component.html +++ b/apps/client/src/app/components/positions-table/positions-table.component.html @@ -6,6 +6,17 @@ mat-table [dataSource]="dataSource" > + + + + + + + Symbol @@ -15,6 +26,23 @@ + + + Name + + + {{ + element.name + }} + + + - - - Performance - - - - - - - - - - - Initial Allocation - - - - - - - - - Current Allocation + Allocation @@ -99,7 +85,28 @@ - + + + Performance + + + + + + + + + ; };