compare_loans
Compare EMI outputs for multiple loan scenarios in one API call, enabling side-by-side evaluation to inform borrowing decisions.
Instructions
Compare EMI outputs for multiple loan scenarios in a single API call.
Args:
scenarios: List of loan dictionaries with keys
name, principal, interestRate, and tenure.
Optional key calculation_method overrides the default.
calculation_method: Default strategy applied when a scenario omits it.
Returns: Backend JSON payload with comparison results or an error structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenarios | Yes | ||
| calculation_method | No | reducing |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |