@ -172,16 +172,16 @@ export class GfPublicPageComponent implements OnInit {
this . holdings . push ( position ) ;
this . holdings . push ( position ) ;
this . positions [ symbol ] = {
this . positions [ symbol ] = {
currency : position.currency ,
currency : position.assetProfile. currency ,
name : position.name ,
name : position.assetProfile. name ,
value : position.allocationInPercentage
value : position.allocationInPercentage
} ;
} ;
if ( position . assetClass !== AssetClass . LIQUIDITY ) {
if ( position . assetProfile . asset Class !== AssetClass . LIQUIDITY ) {
// Prepare analysis data by continents, countries, holdings and sectors except for liquidity
// Prepare analysis data by continents, countries, holdings and sectors except for liquidity
if ( position . countries . length > 0 ) {
if ( position . assetProfile . countries . length > 0 ) {
for ( const country of position . countries ) {
for ( const country of position . assetProfile . countries ) {
const { code , continent , name , weight } = country ;
const { code , continent , name , weight } = country ;
if ( this . continents [ continent ] ? . value ) {
if ( this . continents [ continent ] ? . value ) {
@ -220,8 +220,8 @@ export class GfPublicPageComponent implements OnInit {
0 ;
0 ;
}
}
if ( position . sectors . length > 0 ) {
if ( position . assetProfile . sectors . length > 0 ) {
for ( const sector of position . sectors ) {
for ( const sector of position . assetProfile . sectors ) {
const { name , weight } = sector ;
const { name , weight } = sector ;
if ( this . sectors [ name ] ? . value ) {
if ( this . sectors [ name ] ? . value ) {
@ -245,7 +245,7 @@ export class GfPublicPageComponent implements OnInit {
}
}
this . symbols [ prettifySymbol ( symbol ) ] = {
this . symbols [ prettifySymbol ( symbol ) ] = {
name : position.name ,
name : position.assetProfile. name ,
symbol : prettifySymbol ( symbol ) ,
symbol : prettifySymbol ( symbol ) ,
value : isNumber ( position . valueInBaseCurrency )
value : isNumber ( position . valueInBaseCurrency )
? position . valueInBaseCurrency
? position . valueInBaseCurrency