Quantlib is an open-source C++ library for quantitative finance.

learn more… | top users | synonyms

18
votes
4answers
2k views

QuantLib in industry

How much is QuantLib used in industry and how much street cred does it have?
8
votes
1answer
1k views

Is QuantLib more trouble than it's worth?

I'm just starting to work with QuantLib and wonder if I'm going down a very wrong path. I'm working on a site that presents the visitor with a table of streamed real-time options data, including ...
7
votes
1answer
1k views

How to calculate the local volatility surface using QuantLib?

I'd like to calculate the local volatility surface for a series of option strikes, similar to the surface described in this paper: http://www.ederman.com/new/docs/gs-local_volatility_surface.pdf ...
5
votes
2answers
2k views

using quantlib function in my c++ program

I want to include the QuantLib function for option greeks calculations in my own C++ code. My question is: can I just include those functions? I don't want to use the rest of their stuff. I obviously ...
5
votes
1answer
438 views

QuantLib and exact numerical simulation

I've just downloaded quantlib and started playing around with it, and it looks like it's designed primarily to use Euler discretizations for everything -- so far as I can tell, there's not even a ...
5
votes
1answer
215 views

Definition of gearings, spreads and curve in RQuantLib's Floating Rate Bond function

Consider the RQuantLib package function FloatingRateBond(). This takes as inputs gearings ...
5
votes
1answer
93 views

Pricing a bond with variable strike collar with QuantLibXL

I am trying to price a floating rate bond with a capped and floored interest rate. The strikes of the caps and floors vary, but are known in advance. I am trying to do this with QuantLibXL, but I am ...
3
votes
1answer
97 views

Pricing a FixedRateBond in Quantlib: yield vs TermStructure

I am trying to price a simple U.S. treasury in QuantLib, using two methods. The first method calls FixedRatebond.dirtyPrice(...), passing in a YTM and other parameters. The second method involves ...
3
votes
3answers
1k views

VaR implementation using quantlib?

I am thinking of writing a VaR framework for my existing system, using quantlib to do the bulk of the calculations. Despite several searches, I have not as yet come across a quantlib VaR ...
3
votes
1answer
264 views

Pricing Fixed-To-Floater bond in QuantLib

Wandering through QuantLib's Financial instruments documentation, I noticed no class for fixed-to-floater bonds exist. Then I was wondering what a suitable way to price such an instrument would be ...
3
votes
1answer
206 views

How to manage evaluation date changes in QuantLib while using ImpliedTermStructure Class

I will not attach the whole code 'cause it would be just a huge waste of space and it would be not useful for this question's purpose. What I am going to attach here is a snippet code and its output, ...
3
votes
1answer
420 views

Interpreting QuantLlib implied volatility numbers

I am using QuantLib to calculate implied volatilities. I am trying to understand the calculated figures (especially, when compared to historical volatility). The calculated implied volatility numbers ...
3
votes
0answers
561 views

What is the best solution to use QuantLib within Excel?

Excel is likely the most widespread instrument across all not-only-quants desks; in addition, we have to keep in mind that Bloomberg and Reuters allow to easily import real time data in Excel, and ...
3
votes
0answers
134 views

RQuantLib: any difference between FixedRateBond() and FixedRateBondPriceByYield() with flat term structure?

Please, consider the following functions from RQuantLib package: FixedRateBond() ...
2
votes
1answer
362 views

How to sum interest rate curves in QuantLib

C++ code taken from Bonds.cpp and slightly amended: ...
2
votes
1answer
207 views

QuantLib error with qlPiecewiseYieldCurveData() on qlPiecewiseYieldCurve() with ZeroYield and ForwardRate

I'm using QuantLibXL to build a discount curve, a zero yield curve and a forward curve of the EURIBOR rate (QuantLibXL is downloadable here). I've built an object of class ...
2
votes
1answer
554 views

How to price a bond at specified dates in QuantLib

I am wondering what's the most efficient way (i.e. the method which involves the fewest arguments) to price a bond at a specified date, e.g. a future date (as instance, 6 months from now) in QuantLib. ...
2
votes
1answer
259 views

Setting up Schedule for an amortizing floater in QuantLib

I am unsure as to the exact arguments required for the Schedule function for an amortizing floater - my code is listed below. Specifically, my question pertains to whether the schedule should always ...
2
votes
1answer
92 views

QuantLibXL - Optionlet bootstrapping failure

I am trying to bootstrap the Optionlet volatility surface from a Cap/Floor volatility surface using QuantLibXL. To be specific, the data is from ICAP: ...
1
vote
1answer
655 views

Quantlib in JavaScript? [closed]

Is there such a thing? Or is there a project around that aims to realize Quantlib in JS? I'm a JS coder and I'd like to get involved if so. Maybe it seems futile or insane today, but who can doubt ...
1
vote
1answer
222 views

Automatic fixing of missing floating rate in QuantLib's addFixing()

Due to the periodic fixing of floating rate bonds's coupon rates, in order to calculate the bond clean price one must tell the pricing engine to account for previous LIBOR rate fixing. If I am right ...
1
vote
1answer
150 views

Definition of “tenor” argument in QuantLib's Schedule class object

In QuantLib an object of class Schedule takes const Period &tenor as argument. I would ...
1
vote
1answer
74 views

novice question on fixed coupon schedule in QuantLib

For some bonds I work with the last coupon date is not equal to bond's maturity date. E.g. the last coupon date is April 25th, 2020 and maturity date is April 25th, 2021. I looked at Schedule class ...
1
vote
0answers
91 views

RCaller & RQuantlib error in java

I am receiving the following error: ...
0
votes
0answers
91 views

Java Implied Volatility Solving

After using RQuantLib and RCaller from Java I am desiring a bit more speed on my implied volatility calculations (for anyone who has used this knows it is quite slow). I need to price a large number ...
0
votes
0answers
486 views

What is the best alternative of Quantlib library

We need to build a Fixed Income Portfolio Risk Analytics solution. Somehow due to administrative reason we can't use Quantlib which is written in C++, even call it through SWIG via JNI. We have tried ...