Bond cashflow schedule

bond-cashflow-schedule · version 1.0.0 · Financial calculations · free, no key needed

Coupon dates, coupons remaining, accrued days and accrued interest for a regular fixed-coupon bond (Excel COUP* rules).

Use when you need to: bond coupon dates schedule · accrued interest on a bond · previous and next coupon date.

Decide before calling

Read the versioned contract and the supported scope below. Reuse bond-cashflow-schedule@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use bond-cashflow-schedule@1.0.0 for bond coupon dates schedule. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "settlement": "2011-01-25",
  "maturity": "2011-11-15",
  "coupon_rate": "0.05",
  "frequency": 2,
  "basis": "act-act"
}

Response:

{
  "result": {
    "previous_coupon_date": "2010-11-15",
    "next_coupon_date": "2011-05-15",
    "coupons_remaining": 2,
    "accrued_days": 71,
    "days_to_next_coupon": 110,
    "period_days": "181.000000",
    "accrued_interest": "0.980663",
    "coupon_amount": "2.500000",
    "coupons": [
      {
        "date": "2011-05-15",
        "amount": "2.500000"
      },
      {
        "date": "2011-11-15",
        "amount": "2.500000"
      }
    ]
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "bond-cashflow-schedule",
  "version": "1.0.0",
  "input": {
    "settlement": "2011-01-25",
    "maturity": "2011-11-15",
    "coupon_rate": "0.05",
    "frequency": 2,
    "basis": "act-act"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/bond-cashflow-schedule/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"settlement":"2011-01-25","maturity":"2011-11-15","coupon_rate":"0.05","frequency":2,"basis":"act-act"}'

The machine-readable contract is at /v1/tools/bond-cashflow-schedule/versions/1.0.0.

CLI

node cli.mjs run bond-cashflow-schedule 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.