This REST API is used to fetch the Segment Averages.
Endpoint (HTTP Link): http://<hostname>:<port>/rest-api /rest-v1/segmentMetrics/
Service Type: POST
Request JSON Prameters:
· portfolio_code
String
Refers to the Code for the Portfolio: Portfolio being that of Retail or Institutional.
· segment_type_code
Refers to the Code for Segment Type : Segment Type being Demographic/Risk Based/Profitability/Behavioral, and so on.
· segment_code
Refers to the Code for Segment within a particular Segment Type.
Request JSON Sample
{
"items": [
"portfolio_code": "string",
"segment_type_code": "string",
"segment_code": "string",
}
]
Response Parameters:
· rota
Number
Return On Total Assets.
· raroc
Risk Adjusted Return On Capital.
· roe
Return On Equity.
· total_income
Total income.
· total_expenses
Total expenses.
· net_income
Net income.
Response JSON Sample
"rota": 0,
"raroc": 0,
"roe": 0,
"total_income": 0,
"total_expenses": 0,
"net_income": 0