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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user