cogitolearning
March 12, 2015
C++, QuantLib, Tutorials
bonds, c++, pricing engine, quantlib
In the previous post about QuantLib Pricing engines I talked about the basic functionality of pricing engines. These are implemented by the PricingEngine and the GenericPricingEngine class. These engines provide an interface and some basic functions but the actual calculations…
Read more
cogitolearning
March 5, 2014
Manuals, QuantLib
cashflow, Manual, npv, quantlib
When you have a series of cash flows you will normally want to know the net present value of those cash flows. The net present value (NPV) of a series of cash flows is calculated as the sum of all…
Read more
cogitolearning
January 31, 2014
Manuals, QuantLib
cashflow, coupons, Manual, quantlib
In addition to the CashFlow class, QuanLib defines a number of helper functions that analyse cash flows. These function operate on sequences arrays of cash flows which, in QuantLib, are termed legs. typedef std::vector< boost::shared_ptr<CashFlow> > Leg; The functions for…
Read more
cogitolearning
January 10, 2014
Code, Manuals, QuantLib, Tutorials
boost, quantlib, random numbers
In the previous post on random number generators I introduced all the random number generators (RNGs) that are available in QuantLib. In most circumstances these generators will be sufficient. However, if you take a look at the boost/random package, you…
Read more
cogitolearning
December 2, 2013
Programming Tips, QuantLib, Tutorials
boost, c++, quantlib, random numbers, tutorial
QuantLib uses random numbers in many places, such as in Pricing Engines to calculate the NPV of an instrument, in the Brownian Generator that is used in market-model simulations and in the Monte Carlo Model for path samples. In financial…
Read more
cogitolearning
May 24, 2013
Manuals, QuantLib
c++, Manual, quantlib, term structure, yield curve
In a previous post I discussed the abstract class TermStructure that defines methods common to any kind of term structure. It was pointed out that many classes inherit from the TermStructure class, including a class called YieldTermStructure. This class is, again,…
Read more
cogitolearning
April 4, 2013
Manuals, QuantLib
indices, Manual, quantlib, quotes
The LastFixingQuote is an implementation of the abstract Quote class. LastFixingQuote represents a quote for the last available fixing of an index. Essentially it is a simple wrapper around the Index class to allow indices to be used as Quotes. class…
Read more
cogitolearning
February 21, 2013
Manuals, QuantLib
c++, Manual, quantlib, quotes
Quotes are one of the most basic pieces of financial information. A quote is a value of any market observable. Quotes come in many shapes and forms and usually reflect the price at which a commodity traded. The Quote class in…
Read more
cogitolearning
February 15, 2013
Manuals, QuantLib
c++, instrument, Manual, quantlib
Financial instruments are assets that can be traded and thus have a financial value attached to them. The value is usually expressed by the net present value (NPV) which is the financial value of the instrument at a given date….
Read more
cogitolearning
January 31, 2013
Manuals, QuantLib
c++, indices, Manual, quantlib
Previously, I have talked about indices and have looked at the Index class in QuantLib. In this article I will talk about a specialization of the Index class, the InterestRateIndex class. This class extends the basic Index with functionality that…
Read more