Calculate yield or price
bondterminal_calculateResults include live optionAdjusted OAS with model assumptions when a curve is available. Run what-if bond analytics from exactly one supplied price, YTM, G-spread, or Z-spread for each bond. YTM is percent, semi-annual bond-equivalent (S.A.) for every bond; spreads are basis points on the same basis, except EUR bonds, whose spreads are over the Bund curve on the annual basis (spreads.benchmark BUND, yields.ytmAnnual); and prices are per 100 face. Yield conventions: https://bondterminal.com/methodology/yields Maximum 50 bonds per call. Billing: 1 calculation unit per bond.
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": {
"bonds": "<bonds>"
},
"name": "bondterminal_calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bonds | Yes | Up to 50 bonds, each with an identifier and exactly one of price, ytm, gSpread or zSpread. | |
| settlement | No | Settlement date, YYYY-MM-DD, years 2020 to 2100. Omitted, each bond uses its standard settlement. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| errors | No | ||
| results | Yes |