Feature/clean up deprecated GET api/portfolio/positions endpoint (#3373)

This commit is contained in:
Thomas Kaul
2024-05-08 20:04:32 +02:00
committed by GitHub
parent 1fd836194f
commit 4ad4fa2b30
7 changed files with 30 additions and 88 deletions

View File

@@ -416,7 +416,7 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
private searchHoldings(aSearchTerm: string): Observable<ISearchResultItem[]> {
return this.dataService
.fetchPositions({
.fetchPortfolioHoldings({
filters: [
{
id: aSearchTerm,
@@ -429,8 +429,8 @@ export class GfAssistantComponent implements OnChanges, OnDestroy, OnInit {
catchError(() => {
return EMPTY;
}),
map(({ positions }) => {
return positions.map(
map(({ holdings }) => {
return holdings.map(
({ assetSubClass, currency, dataSource, name, symbol }) => {
return {
currency,