asset-info
Example
<cr-component id="component" name="asset-info"></cr-component>
<script>
const component = document.querySelector("#component");
component.init({
symbolId: 144616,
selectedPeriod: "YTD",
});
</script>
Schema
{
"type": "object",
"required": [
"symbolId"
],
"properties": {
"symbolId": {
"type": "number",
"description": "symbolId of the asset to be represented."
},
"period": {
"type": "string",
"default": "SI",
"description": "A period must be one of 1W,2W,1M,3M,6M,YTD,1Y,3Y,5Y,10Y,SI or a string containig two valid dates like 20211012-20220812"
}
},
"additionalProperties": true
}
Complete Schema
{}
Public functions
-
setPeriod(period)
Function to set another period
Params
- {string} period
Locales
{
"series": "Performance",
"properties": {
"symbolType": "Asset type",
"isin": "ISIN",
"currency": "Currency",
"baseCurrency": "Base currency",
"firmManager": "Firm manager",
"issuer": "Issuer",
"isHedged": "Hedged?",
"paysDividends": "Pays dividends?",
"isOpen": "Open to susbcriptions?",
"ocr": "Ongoing charges",
"countryLegalRegistration": "Country legal registration",
"market": "Market",
"replicationType": "Replication type",
"investmentType": "Investment type",
"coupon": "Coupon",
"couponType": "Coupon type",
"couponPeriodicity": "Coupon periodicity",
"couponPeriodicitySuffix": "per year",
"firstCouponDate": "First coupon date",
"maturityDate": "Maturity date"
},
"classification": {
"title": "Classification",
"riskFamily": "Risk family",
"moneyMarketType": "Money market type",
"bondType": "Bond type",
"bondIssuerType": "Bond issuer type",
"creditQuality": "Credit quality",
"denomination": "Denomination",
"maturity": "Maturity",
"assetAllocation": "Asset allocation",
"capitalisation": "Capitalisation",
"theme": "Theme",
"factor": "Factor",
"commodity": "Commodity",
"region": "Region",
"geographicRegion": "Geographic region",
"economic": "Economic",
"economicRegion": "Economic region",
"mainSector": "Main sector",
"industryGroup": "Industry group",
"industry": "Industry",
"subindustry": "Subindustry",
"investmentStrategy": "Investment strategy"
}
}