Metadata-Version: 2.1
Name: qelib
Version: 0.2.0
Summary: Quantitative finance analytics for credit, rates, FX and government bonds, with AAD greeks, for Python and Excel
Requires-Python: >=3.13
License: Proprietary - the qeLib developer license; third-party licenses in qeLib/licenses
Project-URL: Homepage, https://github.com/mortenbaiandersen-cpu/qelib-releases
Project-URL: License, https://github.com/mortenbaiandersen-cpu/qelib-releases/blob/main/licenses/qeLib-Developer-License.txt
Project-URL: Releases, https://github.com/mortenbaiandersen-cpu/qelib-releases/releases
Project-URL: Documentation, https://github.com/mortenbaiandersen-cpu/qelib-releases/releases/latest
Project-URL: Changelog, https://github.com/mortenbaiandersen-cpu/qelib-releases/blob/main/CHANGELOG.md
Keywords: quantitative finance,derivatives,pricing,risk,greeks,AAD,credit,CDS,ISDA,CDO tranches,base correlation,interest rates,swaptions,SABR,FX options,government bonds,repo,Significant Risk Transfers (SRT),securitisation,Excel
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Financial and Insurance Industry
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Office/Business :: Financial
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Natural Language :: English
Classifier: Programming Language :: C++
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Description-Content-Type: text/markdown

# qeLib for Python

qeLib's analytics as a Python package: dates and market data (`qeLib.Data`),
numerics (`qeLib.Core`), the ISDA CDS Standard Model (`qeLib.IsdaCds`),
discount, projection, survival and recovery curves and their strippers
(`qeLib.Curves`), copulas, loss distributions and base correlation for credit
tranches (`qeLib.CreditCorrelation`), caps, floors, swaptions and CMS
(`qeLib.RatesOption`), options on CDS indices (`qeLib.CreditOption`),
analytics for Significant Risk Transfer securitisations (`qeLib.SRT`),
foreign exchange options (`qeLib.FxOption`), and
government bonds, bills and repos (`qeLib.Bonds`) - with first-order risk by
AAD.

```python
import qeLib
print(qeLib.__version__, qeLib.License.licensee(), qeLib.License.expires())
```

The User Guide, `qeLib.pdf`, documents every type and function; it is
published with each release.

## Requirements

- 64-bit Windows with Python 3.13; x86-64 Linux with Python 3.14; or macOS
  11 or later, on Apple Silicon or Intel, with Python 3.14.
- On Windows, the Microsoft Visual C++ 2015-2022 x64 runtime (usually
  installed already; if not, `vc_redist.x64.exe` from Microsoft).

## License

qeLib is proprietary, licensed for development and evaluation under the
[qeLib developer license](https://github.com/mortenbaiandersen-cpu/qelib-releases/blob/main/licenses/qeLib-Developer-License.txt);
production use needs a separate agreement. Installing or using qeLib means
accepting the developer license. It runs under a signed license file, looked
for where the environment variable `QELIB_LICENSE` says, then as `qeLib.lic`
in your home directory, then beside the package's libraries, where a
release's evaluation license is. For a developer license of your own, or a
production license, write to licensing@qeanalytics.co.uk.

The developer license's terms are also in the package's `licenses`
directory, as `qeLib-Developer-License.txt`, with the licenses of the
third-party software qeLib uses, each listed in `NOTICES.txt` there.

## Threads

For a large enough pool and grid, the credit correlation loss distributions
are built on several threads, as many as the machine runs at once. To use
fewer, set the environment variable `QELIB_THREADS` to the number - `1` for
none but the calling one. The results are the same, to the last bit, however
many there are.

This application is based on the ISDA CDS Standard Model (version 1.8.3),
developed and supported in collaboration with Markit Group Ltd. qeLib has
modified the model's code, only so that it is safe to call from several
threads at once; the licenses folder's NOTICES.txt lists the changes.
