|
|
@ -218,14 +218,12 @@ export class YahooFinanceDataEnhancerService implements DataEnhancerInterface { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
response.holdings = []; |
|
|
response.holdings = assetProfile.topHoldings.holdings.map((holding) => { |
|
|
|
|
|
return { |
|
|
for (const holding of assetProfile.topHoldings.holdings) { |
|
|
|
|
|
response.holdings.push({ |
|
|
|
|
|
name: holding.holdingName, |
|
|
name: holding.holdingName, |
|
|
weight: holding.holdingPercent |
|
|
weight: holding.holdingPercent |
|
|
}); |
|
|
}; |
|
|
} |
|
|
}); |
|
|
} else if ( |
|
|
} else if ( |
|
|
assetSubClass === 'STOCK' && |
|
|
assetSubClass === 'STOCK' && |
|
|
assetProfile.summaryProfile?.country |
|
|
assetProfile.summaryProfile?.country |
|
|
|