portfolio-assessment

Example

<cr-component id="component" name="portfolio-assessment"></cr-component>
<script>
  const component = document.querySelector("#component");
  component.init({
    assessment: {
      amount: 9000,
      assessmentId: 1211,
      date: "2020-12-28T00:00:00",
      drawdown: -0.409295843,
      score: 1,
      fees: {
        management: {
          value: 0.3,
          message: "Alto rendimiento",
        },
        success: {
          value: 0.3,
          message: "Alto rendimiento",
        },
        ocr: {
          value: 0.007,
          message: "Alto rendimiento",
        },
        other: {
          value: 0.3,
          message: "Alto rendimiento",
        },
      },
      currentStatistics: {
        governanceScore: 68.0,
        totalEsgScore: 67.0,
        totalESGRelevance: 0.5,
        environmentScore: 67.0,
        socialScore: 66.0,
      },
      proposedFees: {
        management: {
          value: 0.3,
          message: "Alto rendimiento",
        },
        success: {
          value: 0.3,
          message: "Alto rendimiento",
        },
        ocr: {
          value: 0.0035,
          message: "Alto rendimiento",
        },
        other: {
          value: 0.3,
          message: "Alto rendimiento",
        },
      },
      performance: -0.045215695,
      positions: [
        {
          insufficientData: true,
          currency: "EUR",
          name: "Rentamarkets Narval FI ES Acc",
          rankingPosition: 244,
          assets: null,
          volatility: null,
          weight: 0.4444444444,
          isin: "ES0173367030",
          proposal: {
            currency: "USD",
            weight: 0.4444444444,
            rankingPosition: 1,
            assets: 54487180.7,
            volatility: 0.1637969649,
            name: "HeptagonHeptagon European Focus Eq Fd ES Acc Hedged",
            isin: "IE00BVVQH462",
            return: 0.1534003098,
            category: "Equity Europe",
            symbolId: 158345,
            ranking: 1,
            ocr: 0.0138,
          },
          universe: [158345, 165092, 148452, 177267, 163390, 123716, 180045, 126127],
          return: null,
          category: "Equity Europe",
          symbolId: 172940,
          ranking: 0,
          ocr: 0.0062,
        },
      ],
      proposedDrawdown: -0.2596822096,
      proposedPerformance: 0.2091689394,
      proposedVolatility: 0.1853117675,
      riskLevel: 2,
      status: "Processed",
      user: "System",
      volatility: 0.2330803533,
    },
  });
</script>

Schema

{
 "type": "object",
 "properties": {
  "assessmentId": {
   "type": "integer",
   "minimum": 1,
   "description": "Assessment identifier"
  },
  "assessment": {
   "type": "object",
   "description": "In case you want to use an already created assessment",
   "properties": {
    "amount": {
     "type": "integer"
    },
    "assessmentId": {
     "type": "integer"
    },
    "date": {
     "type": "string"
    },
    "drawdown": {
     "type": "number"
    },
    "fees": {
     "type": "object",
     "description": "An object with the all the fees to be applied in the proposal",
     "properties": {
      "management": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      },
      "success": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      },
      "ocr": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      },
      "other": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      }
     }
    },
    "proposedFees": {
     "type": "object",
     "properties": {
      "management": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      },
      "success": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      },
      "ocr": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      },
      "other": {
       "type": "object",
       "properties": {
        "value": {
         "type": [
          "number",
          "null"
         ]
        },
        "message": {
         "type": "string"
        }
       }
      }
     }
    },
    "performance": {
     "type": "number"
    },
    "positions": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "insufficientData": {
        "type": "boolean"
       },
       "currency": {
        "type": "string"
       },
       "name": {
        "type": "string"
       },
       "rankingPosition": {
        "type": "number"
       },
       "ranking": {
        "type": "number"
       },
       "assets": {
        "type": "null"
       },
       "volatility": {
        "type": "null"
       },
       "weight": {
        "type": "number"
       },
       "isin": {
        "type": "string"
       },
       "proposal": {
        "type": [
         "object",
         "null"
        ],
        "properties": {
         "currency": {
          "type": "string"
         },
         "weight": {
          "type": "number"
         },
         "ranking": {
          "type": "number"
         },
         "rankingPosition": {
          "type": "number"
         },
         "assets": {
          "type": "number"
         },
         "volatility": {
          "type": "number"
         },
         "name": {
          "type": "string"
         },
         "isin": {
          "type": "string"
         },
         "return": {
          "type": "number"
         },
         "category": {
          "type": "string"
         },
         "symbolId": {
          "type": "integer"
         },
         "ocr": {
          "type": "number"
         }
        }
       },
       "universe": {
        "type": "array",
        "items": {
         "type": "integer"
        }
       },
       "return": {
        "type": "null"
       },
       "category": {
        "type": "string"
       },
       "symbolId": {
        "type": "integer"
       },
       "ocr": {
        "type": "number"
       }
      }
     }
    },
    "proposedDrawdown": {
     "type": "number"
    },
    "proposedPerformance": {
     "type": "number"
    },
    "proposedVolatility": {
     "type": "number"
    },
    "riskLevel": {
     "type": "integer"
    },
    "status": {
     "type": "string"
    },
    "user": {
     "type": "string"
    },
    "volatility": {
     "type": "number"
    }
   }
  },
  "positions": {
   "type": "array",
   "minItems": 1,
   "description": "Portfolio positions",
   "items": {
    "type": "object",
    "additionalProperties": false,
    "required": [
     "symbolId",
     "amount"
    ],
    "properties": {
     "symbolId": {
      "type": "number"
     },
     "amount": {
      "type": "number",
      "minimum": 0
     }
    }
   }
  },
  "filter": {
   "type": "object",
   "description": "Filter the available universe.",
   "additionalProperties": false,
   "nullable": true,
   "properties": {
    "symbolType": {
     "anyOf": [
      {
       "enum": [
        "Bond",
        "Bond Index",
        "CurrencyPair",
        "ETF Listing",
        "Forward",
        "FundClass",
        "Future",
        "Future Continuation",
        "Interest Rate",
        "Mandate",
        "Stock",
        "Stock Index",
        "Swap"
       ]
      },
      {
       "type": "array",
       "uniqueItems": true,
       "minItems": 1,
       "items": {
        "enum": [
         "Bond",
         "Bond Index",
         "CurrencyPair",
         "ETF Listing",
         "Forward",
         "FundClass",
         "Future",
         "Future Continuation",
         "Interest Rate",
         "Mandate",
         "Stock",
         "Stock Index",
         "Swap"
        ]
       }
      }
     ]
    },
    "countryRegistration": {
     "anyOf": [
      {
       "enum": [
        "AF",
        "AL",
        "DZ",
        "AD",
        "AO",
        "AG",
        "AR",
        "AM",
        "AU",
        "AT",
        "AZ",
        "BS",
        "BH",
        "BD",
        "BB",
        "BY",
        "BE",
        "BZ",
        "BJ",
        "BT",
        "BO",
        "BA",
        "BW",
        "BR",
        "BN",
        "BG",
        "BF",
        "MM",
        "BI",
        "CV",
        "KH",
        "CM",
        "CA",
        "CF",
        "TD",
        "CL",
        "CN",
        "CO",
        "KM",
        "CG",
        "CR",
        "CI",
        "HR",
        "CU",
        "CY",
        "CZ",
        "CD",
        "DK",
        "DJ",
        "DM",
        "DO",
        "TL",
        "EC",
        "EG",
        "SV",
        "GQ",
        "ER",
        "EE",
        "ET",
        "FJ",
        "FI",
        "FR",
        "GA",
        "GM",
        "GE",
        "DE",
        "GH",
        "GR",
        "GD",
        "GT",
        "GN",
        "GW",
        "GY",
        "HT",
        "HN",
        "HK",
        "HU",
        "IS",
        "IN",
        "ID",
        "IR",
        "IQ",
        "IE",
        "IL",
        "IT",
        "JM",
        "JP",
        "JO",
        "KZ",
        "KE",
        "KI",
        "KW",
        "KG",
        "LA",
        "LV",
        "LB",
        "LS",
        "LR",
        "LY",
        "LI",
        "LT",
        "LU",
        "MG",
        "MW",
        "MY",
        "MV",
        "ML",
        "MT",
        "MH",
        "MR",
        "MU",
        "MX",
        "FM",
        "MD",
        "MC",
        "MN",
        "ME",
        "MA",
        "MZ",
        "NA",
        "NR",
        "NP",
        "NL",
        "NZ",
        "NI",
        "NE",
        "NG",
        "KP",
        "MK",
        "NO",
        "OM",
        "PK",
        "PW",
        "PS",
        "PA",
        "PG",
        "PY",
        "PE",
        "PH",
        "PL",
        "PT",
        "PR",
        "QA",
        "RO",
        "RU",
        "RW",
        "KN",
        "LC",
        "VC",
        "WS",
        "SM",
        "ST",
        "SA",
        "SN",
        "RS",
        "SC",
        "SL",
        "SG",
        "SK",
        "SI",
        "SB",
        "SO",
        "ZA",
        "KR",
        "SS",
        "ES",
        "LK",
        "SD",
        "SR",
        "SZ",
        "SE",
        "CH",
        "SY",
        "TW",
        "TJ",
        "TZ",
        "TH",
        "TG",
        "TO",
        "TT",
        "TN",
        "TR",
        "TM",
        "TV",
        "UG",
        "UA",
        "AE",
        "GB",
        "US",
        "UY",
        "UZ",
        "VU",
        "VE",
        "VN",
        "YE",
        "ZM",
        "ZW"
       ]
      },
      {
       "type": "array",
       "uniqueItems": true,
       "minItems": 1,
       "items": {
        "enum": [
         "AF",
         "AL",
         "DZ",
         "AD",
         "AO",
         "AG",
         "AR",
         "AM",
         "AU",
         "AT",
         "AZ",
         "BS",
         "BH",
         "BD",
         "BB",
         "BY",
         "BE",
         "BZ",
         "BJ",
         "BT",
         "BO",
         "BA",
         "BW",
         "BR",
         "BN",
         "BG",
         "BF",
         "MM",
         "BI",
         "CV",
         "KH",
         "CM",
         "CA",
         "CF",
         "TD",
         "CL",
         "CN",
         "CO",
         "KM",
         "CG",
         "CR",
         "CI",
         "HR",
         "CU",
         "CY",
         "CZ",
         "CD",
         "DK",
         "DJ",
         "DM",
         "DO",
         "TL",
         "EC",
         "EG",
         "SV",
         "GQ",
         "ER",
         "EE",
         "ET",
         "FJ",
         "FI",
         "FR",
         "GA",
         "GM",
         "GE",
         "DE",
         "GH",
         "GR",
         "GD",
         "GT",
         "GN",
         "GW",
         "GY",
         "HT",
         "HN",
         "HK",
         "HU",
         "IS",
         "IN",
         "ID",
         "IR",
         "IQ",
         "IE",
         "IL",
         "IT",
         "JM",
         "JP",
         "JO",
         "KZ",
         "KE",
         "KI",
         "KW",
         "KG",
         "LA",
         "LV",
         "LB",
         "LS",
         "LR",
         "LY",
         "LI",
         "LT",
         "LU",
         "MG",
         "MW",
         "MY",
         "MV",
         "ML",
         "MT",
         "MH",
         "MR",
         "MU",
         "MX",
         "FM",
         "MD",
         "MC",
         "MN",
         "ME",
         "MA",
         "MZ",
         "NA",
         "NR",
         "NP",
         "NL",
         "NZ",
         "NI",
         "NE",
         "NG",
         "KP",
         "MK",
         "NO",
         "OM",
         "PK",
         "PW",
         "PS",
         "PA",
         "PG",
         "PY",
         "PE",
         "PH",
         "PL",
         "PT",
         "PR",
         "QA",
         "RO",
         "RU",
         "RW",
         "KN",
         "LC",
         "VC",
         "WS",
         "SM",
         "ST",
         "SA",
         "SN",
         "RS",
         "SC",
         "SL",
         "SG",
         "SK",
         "SI",
         "SB",
         "SO",
         "ZA",
         "KR",
         "SS",
         "ES",
         "LK",
         "SD",
         "SR",
         "SZ",
         "SE",
         "CH",
         "SY",
         "TW",
         "TJ",
         "TZ",
         "TH",
         "TG",
         "TO",
         "TT",
         "TN",
         "TR",
         "TM",
         "TV",
         "UG",
         "UA",
         "AE",
         "GB",
         "US",
         "UY",
         "UZ",
         "VU",
         "VE",
         "VN",
         "YE",
         "ZM",
         "ZW"
        ]
       }
      }
     ]
    },
    "currency": {
     "anyOf": [
      {
       "type": "string",
       "minLength": 3,
       "maxLength": 3
      },
      {
       "type": "array",
       "items": {
        "type": "string",
        "minLength": 3,
        "maxLength": 3
       },
       "minItems": 1
      }
     ]
    },
    "investible": {
     "type": "boolean",
     "default": false
    },
    "alive": {
     "type": "boolean"
    },
    "paysDividends": {
     "type": "boolean"
    },
    "regions": {
     "anyOf": [
      {
       "enum": [
        "Europe",
        "North America",
        "Asia Pacific",
        "Emerging Markets",
        "Global"
       ]
      },
      {
       "type": "array",
       "uniqueItems": true,
       "minItems": 1,
       "items": {
        "enum": [
         "Europe",
         "North America",
         "Asia Pacific",
         "Emerging Markets",
         "Global"
        ]
       }
      }
     ]
    },
    "riskFamilies": {
     "anyOf": [
      {
       "enum": [
        "Money Market",
        "Fixed Income",
        "Balanced",
        "Equity",
        "Commodities",
        "Alternative",
        "Forex"
       ]
      },
      {
       "type": "array",
       "uniqueItems": true,
       "minItems": 1,
       "items": {
        "enum": [
         "Money Market",
         "Fixed Income",
         "Balanced",
         "Equity",
         "Commodities",
         "Alternative",
         "Forex"
        ]
       }
      }
     ]
    },
    "sectors": {
     "anyOf": [
      {
       "enum": [
        "Energy",
        "Materials",
        "Industrials",
        "Consumer Discretionary",
        "Consumer Staples",
        "Health Care",
        "Financials",
        "Information Technology",
        "Communication Services",
        "Utilities",
        "Real Estate",
        "No sector"
       ]
      },
      {
       "type": "array",
       "uniqueItems": true,
       "minItems": 1,
       "items": {
        "enum": [
         "Energy",
         "Materials",
         "Industrials",
         "Consumer Discretionary",
         "Consumer Staples",
         "Health Care",
         "Financials",
         "Information Technology",
         "Communication Services",
         "Utilities",
         "Real Estate",
         "No sector"
        ]
       }
      }
     ]
    }
   }
  },
  "rankingFilters": {
   "description": "Filters for the ranking",
   "type": "object",
   "properties": {
    "onlyIdenticalPeers": {
     "type": "boolean"
    }
   }
  },
  "restrictions": {
   "description": "If for a particular asset a closed proposal is to be given, it can be determined here. From the comparison of two assets you can select another proposal that might be more interesting for the user",
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "symbolId": {
      "type": "number"
     },
     "proposedSymbolId": {
      "type": "number"
     }
    }
   }
  },
  "rankingStats": {
   "type": "object",
   "description": "Config for a ranking with custom weights",
   "additionalProperties": false,
   "properties": {
    "return": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    },
    "volatility": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    },
    "drawdown": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    },
    "assets": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    },
    "age": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    },
    "ocr": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    },
    "esg": {
     "type": "object",
     "default": {
      "importance": 0
     },
     "properties": {
      "importance": {
       "type": "number",
       "minimum": 0,
       "maximum": 1
      }
     }
    }
   }
  }
 },
 "additionalProperties": true
}

Complete Schema

{}

Events

  • requested

    Fired when the assessment is requested but no generated

  • generated

    Fired when the assessment is generated

CSS Variables

--space-sections: var(--space-6);
--space-sections: var(--space-5);

Locales

{}