QuantLib in Excel through xlOil and Python
The recommended approach to using QuantLib from Microsoft Excel is through xlOil (xlOil source) which is connected to a Python interpreter running the offical QuantLib Python wrappers. The advantage of this approach:
- Uses QuantLib Python wrappers which is the best maintained, most used and most tested wrapping of QuantLib
- Decouples the Excel Addin mechanisms from QuantLib, improving maintainability
- Retaines the ability to build and use opaque C++ objects as in the traditional addin
- Allows integration with the full Python ecosystem, Pandas, etc., as well as for custom modules
- Maximises reusability between the Excel system which typically used on ad-hoc basis and middle-office/back-office functions
Example port of the Global Bootstrap example
Here is an example of porting global bootstrap example to xlOil. :
Copyright and published by: BN Algorihtms Ltd 2025. For general information only. Not to be relied for any purpose. Not advice about investment. No warranty of any kind. No liability for any use of this information accepted. Contact: webs@bnikolic.co.uk