Excel Integration¶
Lavender Greeks work in Excel through three approaches, from simplest to most powerful. Pick the one that fits your workflow.
1. Power Query (no code)¶
The fastest way to get Greeks into Excel — no VBA, no macros.
- Data → From Web
- Paste this URL:
- Click Load — all Greeks appear as a table
- Data → Refresh All to update
Filter before you fetch
Add parameters to limit the data:
The gateway returns only matching contracts — no need to filter in Excel.Multiple underlyings¶
Create one Power Query per underlying, or use comma-separated:
Term structure¶
One row per expiry — perfect for a term structure chart:
2. VBA Module (recommended for traders)¶
A ready-to-use VBA module that fetches Greeks into a worksheet table and lets you look up individual values with formulas.
Install¶
- Download
LavenderGreeks.bas - Open Excel → Alt+F11 (VBA Editor)
- File → Import File → select
LavenderGreeks.bas - Close the VBA Editor
Fetch Greeks¶
Run the macro from Alt+F8 → RefreshGreeks:
RefreshGreeks "AAPL" ' single ticker
RefreshGreeks "AAPL,MSFT,GOOGL" ' multiple tickers
RefreshGreeks Range("A1:A10") ' from a range of cells
This creates a LavGreeks worksheet with the full chain. One HTTP call per run — fast, no freezing.
Look up values¶
Use formulas that reference the cached table:
| Formula | Result |
|---|---|
=GetGreek("AAPL","2026-06-19",250,"call","delta") |
0.5234 |
=LavDelta("AAPL","2026-06-19",250,"call") |
0.5234 |
=LavTheo("AAPL","2026-06-19",250,"put") |
8.45 |
=LavIV("AAPL","2026-06-19",250,"call") |
0.2781 |
Available shortcuts: LavUndPrice, LavDelta, LavGamma, LavVega, LavTheta, LavDecay, LavRho, LavTheo, LavIV.
For any field: =GetGreek(root, expiry, strike, right, field) where field is any column name from the API (e.g., "vanna", "charm", "lav_vol").
Refresh¶
- Re-run
RefreshGreeksto update (Alt+F8 or assign to a button) - Formulas recalculate automatically when the table updates
Don't call HTTP per cell
Excel freezes if every cell makes its own web request. The GetGreek function reads from the cached worksheet — no HTTP calls. Always use RefreshGreeks first to populate the cache, then GetGreek to look up values.
3. Browser (quick look)¶
Paste any Lavender URL with format=html into your browser for an instant Greeks table:
You can copy-paste from the browser table directly into Excel. Good for one-off checks, not for live feeds.
Tips¶
- Use
greeks=corefor most work — delta, gamma, vega, theta, rho, model price, IV. Addgreeks=allonly if you need extended Greeks. - Filter aggressively —
right=call&max_days=60orcenter=atfto keep the dataset small. - One query per underlying —
RefreshGreeks "AAPL,MSFT"makes one HTTP call and returns ~5,000 rows in under a second. - All Greeks are per-share — multiply by 100 for per-contract values.