feat: expose instrument isin in portfolio positions
This commit is contained in:
@@ -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' }],
|
||||
|
||||
Reference in New Issue
Block a user