feat: aggregate portfolio data across accounts

Add authenticated all-account portfolio, operations, income and event endpoints. Preserve source accounts, exact currency totals and scoped cursor pagination.
This commit is contained in:
2026-09-09 20:36:31 +03:00
parent 33f703d9a3
commit eaf2f67b34
15 changed files with 909 additions and 83 deletions
+4
View File
@@ -12,6 +12,7 @@ import {
Min,
} from 'class-validator';
import { MoneyDto } from './portfolio.dto';
import { AccountReferenceDto } from './account-reference.dto';
export const operationCategories = [
'trade',
@@ -59,6 +60,9 @@ export class BrokerageOperationsQueryDto {
}
export class BrokerageOperationDto {
@ApiPropertyOptional({ type: AccountReferenceDto })
account?: AccountReferenceDto;
@ApiProperty()
id: string;