feat: expose instrument isin in portfolio positions

This commit is contained in:
2026-08-17 13:34:38 +03:00
parent 25d7c5780b
commit 5aa9bd395a
4 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -88,7 +88,7 @@ describe('PortfolioService', () => {
],
});
tbank.getInstrumentByFigi
.mockResolvedValueOnce({ ticker: 'ONE', name: 'Первая позиция' })
.mockResolvedValueOnce({ ticker: 'ONE', name: 'Первая позиция', isin: 'RU000A0JX0J2' })
.mockRejectedValueOnce(new Error('unavailable'));
await expect(service.get('user', 'account')).resolves.toMatchObject({
@@ -100,6 +100,7 @@ describe('PortfolioService', () => {
quantity: '2',
currentValue: { currency: 'RUB', value: '6' },
absoluteReturn: { currency: 'RUB', value: '2' },
isin: 'RU000A0JX0J2',
},
{
figi: 'TWO',
@@ -107,6 +108,7 @@ describe('PortfolioService', () => {
type: 'OTHER',
quantity: '-0.5',
currentValue: { currency: 'USD', value: '-2' },
isin: null,
},
],
cashBalances: [{ currency: 'RUB', value: '1.5' }],