feat: extend account list portfolio summary (#138) #139

Merged
codex-bot merged 3 commits from feature/138-account-list-summary into develop 2026-10-27 05:44:08 +03:00
Showing only changes of commit d360105404 - Show all commits
+6 -2
View File
@@ -234,7 +234,9 @@ describe('local accounts and portfolio HTTP (SQLite)', () => {
}],
unvaluedCategories: [],
},
unrealizedReturnByCurrency: [],
unrealizedReturnByCurrency: [
{ currency: 'RUB', absolute: '0', costBasis: '0', percent: null, partial: true },
],
});
const portfolio = await get('brokerage-accounts/account/portfolio').expect(
200,
@@ -514,7 +516,9 @@ describe('local accounts and portfolio HTTP (SQLite)', () => {
totalsByCurrency: [{ currency: 'RUB', value: '21.1' }],
cashBalances: [{ currency: 'RUB', value: '1.1' }],
structure: { currencies: [{ currency: 'RUB' }] },
unrealizedReturnByCurrency: [],
unrealizedReturnByCurrency: [
{ currency: 'RUB', absolute: '0', costBasis: '0', percent: null, partial: true },
],
stockPositionCount: 1,
bondPositionCount: 0,
fundPositionCount: 0,