|
|
@ -290,6 +290,7 @@ export class PortfolioController {
|
|
|
|
@Query('assetClasses') filterByAssetClasses?: string,
|
|
|
|
@Query('assetClasses') filterByAssetClasses?: string,
|
|
|
|
@Query('holdingType') filterByHoldingType?: string,
|
|
|
|
@Query('holdingType') filterByHoldingType?: string,
|
|
|
|
@Query('query') filterBySearchQuery?: string,
|
|
|
|
@Query('query') filterBySearchQuery?: string,
|
|
|
|
|
|
|
|
@Query('range') dateRange: DateRange = 'max',
|
|
|
|
@Query('tags') filterByTags?: string
|
|
|
|
@Query('tags') filterByTags?: string
|
|
|
|
): Promise<PortfolioHoldingsResponse> {
|
|
|
|
): Promise<PortfolioHoldingsResponse> {
|
|
|
|
const filters = this.apiService.buildFiltersFromQueryParams({
|
|
|
|
const filters = this.apiService.buildFiltersFromQueryParams({
|
|
|
@ -301,6 +302,7 @@ export class PortfolioController {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const { holdings } = await this.portfolioService.getDetails({
|
|
|
|
const { holdings } = await this.portfolioService.getDetails({
|
|
|
|
|
|
|
|
dateRange,
|
|
|
|
filters,
|
|
|
|
filters,
|
|
|
|
impersonationId,
|
|
|
|
impersonationId,
|
|
|
|
userId: this.request.user.id
|
|
|
|
userId: this.request.user.id
|
|
|
|