Bonds - Calculate yield from price contributions or prices from yields

Refer to the bond pricer API to learn about the different things you can do.
Here is an example to calculate the accruedInterest function. Similar you can call other functions. Hope it helps.