feat(portfolio): expose position tickers
This commit is contained in:
@@ -45,6 +45,9 @@ export class PortfolioPositionDto {
|
|||||||
@ApiProperty({ type: String, nullable: true })
|
@ApiProperty({ type: String, nullable: true })
|
||||||
isin: string | null;
|
isin: string | null;
|
||||||
|
|
||||||
|
@ApiProperty({ type: String, nullable: true })
|
||||||
|
ticker: string | null;
|
||||||
|
|
||||||
@ApiProperty({ type: String, nullable: true })
|
@ApiProperty({ type: String, nullable: true })
|
||||||
logoName: string | null;
|
logoName: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ describe('PortfolioService', () => {
|
|||||||
currentValue: { currency: 'RUB', value: '6' },
|
currentValue: { currency: 'RUB', value: '6' },
|
||||||
absoluteReturn: { currency: 'RUB', value: '2' },
|
absoluteReturn: { currency: 'RUB', value: '2' },
|
||||||
isin: 'RU000A0JX0J2',
|
isin: 'RU000A0JX0J2',
|
||||||
|
ticker: 'ONE',
|
||||||
logoName: 'RU000A0JX0J2x160.png',
|
logoName: 'RU000A0JX0J2x160.png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -116,6 +117,7 @@ describe('PortfolioService', () => {
|
|||||||
quantity: '-0.5',
|
quantity: '-0.5',
|
||||||
currentValue: { currency: 'USD', value: '-2' },
|
currentValue: { currency: 'USD', value: '-2' },
|
||||||
isin: null,
|
isin: null,
|
||||||
|
ticker: null,
|
||||||
logoName: null,
|
logoName: null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ export class PortfolioService {
|
|||||||
averagePurchasePrice,
|
averagePurchasePrice,
|
||||||
absoluteReturn,
|
absoluteReturn,
|
||||||
isin: metadata?.isin?.trim() || null,
|
isin: metadata?.isin?.trim() || null,
|
||||||
|
ticker: metadata?.ticker?.trim() || null,
|
||||||
logoName: metadata?.brand?.logoName?.trim() || null,
|
logoName: metadata?.brand?.logoName?.trim() || null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user