Anyone done anything with QuantLib?

Discussion in 'App Development' started by sle, Mar 29, 2017.

  1. sle

    sle

    long-shot, obviously, but maybe someone has good points on getting started? Wanna use it as a side tool with a commercial library
     
    Last edited: Mar 29, 2017
  2. pwa2

    pwa2

    I'm a fan of it. What do you want to do - vol stuff?
    Be careful of your ./configure settings flags so that you don't accidentally mix debug/release versions, O levels etc (./configure --help) and also using the right boost version, so checking the ./bjam flags when building. Hope you find it useful. There's plenty of help on QuantLib-users.
     
  3. sle

    sle

    Mostly light exotic pricing/delta and similar stuff. How easy is it create new payoff models? Is it easy to integrate with python if I write custom pricing models in it?
     
  4. truetype

    truetype

  5. sle

    sle

    It's a wrapper around the C++ library, right? What I don't get is if I build a custom payoff, how easy is it to expose it through any of these wrappers?
     
  6. pwa2

    pwa2

    QuantLib-Python is a SWIG based wrapper around the C++ Quantlib, the python bindings are generated by SWIG.

    You could develop your custom payoffs in C++ using some of QuantLibs functionality (e.g day count conventions, yield curve generators etc) and then expose this functionality (your new functions/class member functions) using swig. The swig definitions file my only require one line of code to do this for each function or member function.

    Or you could write your custom payoffs in python and use the QuantLib-Python for any standard analytics to reduce reinventing the wheel.

    In either case, you would have to install/maintain: boost, QuantLib and QuantLib-Python.
     
  7. QuantLib is not even close to state of the art. What commercial library are you using?
     
    Zzzz1 likes this.
  8. Zzzz1

    Zzzz1

    Using C++?

     
  9. sle

    sle

    Yup. We got Fincad but it does not expose the guts enough for a couple products (like knock-in forward variance) that I want to price.
     
  10. sle

    sle

    State of the art is a vague term :) I got Fincad but some of the products we trade need a more involved model then Fincad allowes
     
    #10     Mar 29, 2017