...
Key Principles
Principle | Decision / Discussion |
---|
Scope is Portfolio |
|
Status | ||||
---|---|---|---|---|
|
Benchmark Data |
|
Models & Figures |
|
Status | ||||
---|---|---|---|---|
|
Aggregation of instruments / segments |
|
colour | Blue |
---|---|
title | out of scope |
Interface "PortfolioRiskExPost"
...
Status
...
Usage & contents |
|
---|
Path
/portfolio/riskexpost
Parameters
portfolioId
string
The id of the portfolio (or consolidation) in the data source
reportingDate
string (date)
The date, the reporing is produced for.
Example call
/portfolio/riskexpost?portfolioId=E0002&reportingDate=2019-03-31
Response structure
If the API can fulfill the request (response status code 200 = OK) the response must follow the below json-schema.
Note |
---|
|
Schema
Error handling
If the request can't be fulfilled an appropriate response status code (4xx or 5xx) must be used. Possible errors could be
bad request structure → expected status = 400
portfolioId not found or reportingDate in future → expected status = 404
etc.
The body of the response should contain information about the reason of the error in plain text or as json object.
Reporting business logic |
| |||||||
---|---|---|---|---|---|---|---|---|
Consistency rules | The following rules should be adhered to by any response and will eventually be checked when consuming a response: Consistency Rules
|
Reporting business logic
aggregation of figures / effects
detection of available periods in result
top n, filtering, sorting
Potential problems
As the ex-post figures are calculated on Aladdin side, no arbitrary periods are possible
...
Status
Status | ||||
---|---|---|---|---|
|
Usage & contents
used to produce
RA001, RA003
RA006..RA008
CO001 (some metrics)
Contents
Ex-ante portfolio level risk figures for a given date and predefined time horizons
This interface will include the previousely used interface PortfolioRiskDecompositions
Path |
|
---|
| |||
Parameters |
| string | The id of the portfolio (or consolidation) in the data source |
---|---|---|---|
| string (date) | The date, the reporing is produced for. | |
Example call |
|
|
Response structure
If the API can fulfill the request (response status code 200 = OK) the response must follow the below json-schema.
Note |
---|
|
Schema
Error handling
If the request can't be fulfilled an appropriate response status code (4xx or 5xx) must be used. Possible errors could be
bad request structure → expected status = 400
portfolioId not found or reportingDate in future → expected status = 404
etc.
Schema | |||
---|---|---|---|
Example |
Interface "PortfolioRiskExAnte"
Status
Status | ||||
---|---|---|---|---|
|
Usage & contents
used to produce cover overviews
Path
Usage & contents | used to produce
Contents
| |||||||
---|---|---|---|---|---|---|---|---|
Reporting business logic |
| |||||||
Consistency rules | The following rules should be adhered to by any response and will eventually be checked when consuming a response: Consistency Rules
|
Reporting business logic
aggregation of figures / effects
filtering, sorting
Potential problems
Interface "PortfolioRiskStatus"
Path |
| ||
---|---|---|---|
Parameters |
| string | The id of the portfolio (or consolidation) in the data source |
| string (date) | The date, the reporing is produced for. | |
Example call |
|
|
Schema
Error handling
If retrieving the risk status fails, an error is produced
If the retrieved risk status is none, the risk gauge is shown without any active segment
Parameters
portfolioId
reportingDate
Schema |
---|
Code Block | ||
---|---|---|
| ||
"riskstatus": {
"calcDate": "2019-03-31",
"statusText": "moderate",
"performanceHistoryMonths": 97,
"SRRI": 3,
"SRI": 2
} |
where
calcDate and statusText are mandatory
any other attributes are only for data lineage reasons (not to be interpreted for reporting)
Example |
---|
Interface "PortfolioRiskStatus"
Usage & contents | used to produce risk status gauges on cover overviews |
---|---|
Reporting business logic | none |
Consistency rules |
|
Reporting business logic
Path |
|
---|---|
Example |
call |
|
---|---|
Parameters |
|
Schema | |
Example |