feat(portfolio): expose position tickers

This commit is contained in:
2026-08-27 00:44:12 +03:00
parent fd4572a645
commit 924f60f653
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -45,6 +45,9 @@ export class PortfolioPositionDto {
@ApiProperty({ type: String, nullable: true })
isin: string | null;
@ApiProperty({ type: String, nullable: true })
ticker: string | null;
@ApiProperty({ type: String, nullable: true })
logoName: string | null;
}
+2
View File
@@ -107,6 +107,7 @@ describe('PortfolioService', () => {
currentValue: { currency: 'RUB', value: '6' },
absoluteReturn: { currency: 'RUB', value: '2' },
isin: 'RU000A0JX0J2',
ticker: 'ONE',
logoName: 'RU000A0JX0J2x160.png',
},
{
@@ -116,6 +117,7 @@ describe('PortfolioService', () => {
quantity: '-0.5',
currentValue: { currency: 'USD', value: '-2' },
isin: null,
ticker: null,
logoName: null,
},
],
+1
View File
@@ -160,6 +160,7 @@ export class PortfolioService {
averagePurchasePrice,
absoluteReturn,
isin: metadata?.isin?.trim() || null,
ticker: metadata?.ticker?.trim() || null,
logoName: metadata?.brand?.logoName?.trim() || null,
};
}