feat(portfolio): expose position tickers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user