Excel integration quickstart¶
merton[excel] ships an xlwings Server + Office.js add-in so users can call
Merton functions as native Excel formulas in Web, Mac, and Windows Excel.
Status: ships in Phase 0.6 (see Changelog). This page is a preview.
Install the add-in¶
pip install "merton[excel]"
merton excel install
Start the local server¶
merton excel server start --port 8000
Leave the terminal running — Excel calls it for every recalculation.
Use it¶
Formula |
Returns |
|---|---|
|
distance to default |
|
probability of default |
|
implied credit spread (bps) |
|
inverted asset value |
|
inverted σ_A |
|
PD term structure (spilled array) |
|
6-cell array of Greeks |
|
model-validation metrics |
Stop the server¶
merton excel server stop