diff --git a/src/tbank/portfolio.dto.ts b/src/tbank/portfolio.dto.ts index 401062b..7549b3d 100644 --- a/src/tbank/portfolio.dto.ts +++ b/src/tbank/portfolio.dto.ts @@ -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; } diff --git a/src/tbank/portfolio.service.spec.ts b/src/tbank/portfolio.service.spec.ts index 2000294..834b49c 100644 --- a/src/tbank/portfolio.service.spec.ts +++ b/src/tbank/portfolio.service.spec.ts @@ -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, }, ], diff --git a/src/tbank/portfolio.service.ts b/src/tbank/portfolio.service.ts index 36aca1f..4223371 100644 --- a/src/tbank/portfolio.service.ts +++ b/src/tbank/portfolio.service.ts @@ -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, }; }