Tag Info

New answers tagged

1

It is helpful to think of the yield $r_b$ of a risky bond (say a corporate) in your country as the yield of the risk-free government bond $r_f$ plus a "spread" $r_s$ ($r_b = r_f + r_s$). This extra spread is the extra yield that the market needs to be paid to purchase the corporate bond instead of buying an equivalent amount of risk-less bonds. In other ...


1

While @Baruch Youssin answers correctly in the general sense, the first part of his answer isn't what happened in the example code. While QLNet is a port of QuantLib, it's not a direct port. Your quoted example doesn't show up in QLNet. The example in QuantLib was written in a very complicated way, in fact it's a simple example. discountingTermStructure is ...


2

I do not yet know QuantLib but one question is general and easy to answer: My first question is why do they use different yield curve? These two curves differ by risk levels inherent in them - the credit spreads over the risk-free yield curve (e.g., the OIS curve). The discounting curve, discountingTermStructure, embeds the risk that this particular ...



Top 50 recent answers are included