Yield or price calculator for one series
calculate_yieldWhat-if calculator for one Catalyst bond series. Give the series code and EITHER a clean price you saw at your broker (price_pct, % of face value, e.g. "101.5") OR a yield (yield_pct, % per year, annual effective) and get: accrued interest, dirty price, yield to maturity (annual effective and compounded per coupon period), current yield, duration for fixed-rate bonds and an approximate effective margin for floating-rate bonds. Uses our coupon terms and the current coupon (for floating-rate bonds the current coupon is assumed to stay until maturity); before tax and fees; early redemption and amortisation are not modelled. We publish no market prices: the price must come from the user. Kalkulator: rentowność z ceny albo cena z rentowności, odsetki narosłe, cena brudna.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "calculate_yield"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Catalyst code of the series, e.g. "KRU0632". | |
| price_pct | No | Clean price in % of face value (without accrued interest), as quoted on Catalyst, e.g. "101.5". Give this or yield_pct. | |
| yield_pct | No | Yield to maturity in % per year (annual effective, ACT/365), e.g. "7.2". Give this or price_pct. | |
| face_value | No | Optional face value of one bond in its currency (e.g. "100" or "1000") to also get amounts per bond. | |
| settlement_date | No | Settlement date YYYY-MM-DD (default: today + 2 business days, the Catalyst T+2 rule). |