induwara.lkinduwara.lk
All endpoints
GET/api/v1/fd

Fixed Deposit Calculator API

Fixed-deposit maturity and effective annual yield. payout=cumulative|monthly; wht=1 applies the 5% withholding tax on interest.

Parameters

ParamInRequiredDescription
principalqueryyesDeposit amount in LKR.
ratequeryyesAnnual interest rate %.
monthsqueryyesTenure in months.
payoutquerynocumulative | monthly.
whtqueryno1 to apply 5% WHT.

Request

curl "https://induwara.lk/api/v1/fd?principal=1000000&rate=10&months=12&payout=cumulative"

JavaScript (SDK):

import { InduwaraLK } from "https://induwara.lk/sdk/induwaralk.js";
const api = new InduwaraLK();
const data = await api.fd(/* … */);

Response

{
  "ok": true,
  "data": {
    "principal": 1000000, "annualRate": 10, "tenureMonths": 12,
    "payout": "cumulative", "maturityGross": 1104713.07,
    "totalInterestGross": 104713.07, "effectiveAnnualYieldGross": 10.47,
    "currency": "LKR"
  }
}

Frequently asked questions

How do I calculate fixed deposit maturity via API?
GET /api/v1/fd?principal=1000000&rate=10&months=12 returns the maturity value and effective annual yield. Use payout=monthly for monthly-interest FDs and wht=1 to apply the 5% withholding tax.