|
|
@ -731,13 +731,11 @@ export class DataService { |
|
|
public fetchPortfolioPerformance({ |
|
|
public fetchPortfolioPerformance({ |
|
|
filters, |
|
|
filters, |
|
|
range, |
|
|
range, |
|
|
withExcludedAccounts = false, |
|
|
withExcludedAccounts = false |
|
|
withItems = false |
|
|
|
|
|
}: { |
|
|
}: { |
|
|
filters?: Filter[]; |
|
|
filters?: Filter[]; |
|
|
range: DateRange; |
|
|
range: DateRange; |
|
|
withExcludedAccounts?: boolean; |
|
|
withExcludedAccounts?: boolean; |
|
|
withItems?: boolean; |
|
|
|
|
|
}): Observable<PortfolioPerformanceResponse> { |
|
|
}): Observable<PortfolioPerformanceResponse> { |
|
|
let params = this.buildFiltersAsQueryParams({ filters }); |
|
|
let params = this.buildFiltersAsQueryParams({ filters }); |
|
|
params = params.append('range', range); |
|
|
params = params.append('range', range); |
|
|
@ -746,10 +744,6 @@ export class DataService { |
|
|
params = params.append('withExcludedAccounts', withExcludedAccounts); |
|
|
params = params.append('withExcludedAccounts', withExcludedAccounts); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (withItems) { |
|
|
|
|
|
params = params.append('withItems', withItems); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return this.http |
|
|
return this.http |
|
|
.get<any>(`/api/v2/portfolio/performance`, { |
|
|
.get<any>(`/api/v2/portfolio/performance`, { |
|
|
params |
|
|
params |
|
|
|