QuantLib Python: How to calculate the price of a zero coupon bond?
QuantLib Python: How to calculate the price of a zero coupon bond? Question: I would like to calculate the price of a 5-year zero-coupon bond at 10% interest with a face value of $1000. I expect such a bond to be priced at $620.92 since $620.92 = 1000/((1.10)^5). Here’s my attempt in Python (Version 3.9.12) …