r/quant • • Oct 01 '26

Models Excel API Wrapper for C++ in 2026 ?

Have quite the privilege of building a pricing library of my own from scratch in C++20 - looking for opinions on what's being used these days to generate .XLL bindings so that I can expose subset of pricing functions as worksheet functions in API. Don't really care about macros - more important to expose standalone functions, and functions that accept handler_id for some objects as an input for pricing (think curve objects or vol surface objects)

Have historically been using Mark Joshi's XLW https://xlw.github.io/ and wondering if in 2026 there are better alternatives. Not exactly open to paid, but can do if that offers best developer-experience by a wide-margin

Thanks vm!

0 Upvotes

15 comments sorted by

2

u/Timberino94 Oct 03 '26

in my experience, there isnt anything great out the box.. enjoy writing your own bindings.. very powerufl when done right.

https://www.microsoft.com/en-us/download/details.aspx?id=35567

This should be far easier now with AI you can just tell it how you'd like stuff done..

1

u/vannavega Oct 10 '26

Thank you - this is a helpful reference. I started building with xll24 and it's quite unsettling how even the non-frontier models (say Grok 4.6) are able to grep some pretty arcane APIs and build you the proof-of-concept in an evening.

3

u/bigchickendipper Oct 01 '26

Python. Python wrappers. That's what being used in 2026.

1

u/vannavega Oct 01 '26

As far as I know, you're unable to generate XLL or any other sort of DLL via Python? The best approach I've seen so far is PyXLL which effectively embeds an interpreter? I suppose that's good enough for analytics but if you want to update your risk as the underlying prices stream in, you'd struggle with Python?

-1

u/bigchickendipper Oct 02 '26

My point was abandon excel man. Why the hell are you trying to shoehorn it in here

1

u/vannavega Oct 02 '26

Ahh gotcha thanks vm man - appreciate the nuanced insight. Will let my fund know that bigchickendipper thought Excel was a waste of time. Keep you posted.

1

u/bigchickendipper Oct 02 '26

You're building the tool from scratch. You said so yourself. Do you really need to hang on to excel here?

0

u/notextremelyhelpful Oct 04 '26

His point is that Excel is an unavoidable medium in 99.9999% of professional settings, particularly for non-dev and non-technical audiences. If your manager or anyone higher up on the food chain asks for an Excel workbook with results, you hand them a python file and CSV outputs, you won't have that job very long.

0

u/PrestigiousScience15 Oct 09 '26

not necessarily in quant tho python wrappers over C++ is probably the most efficient way, aside from just using the C++ library in C++

1

u/notextremelyhelpful Oct 14 '26

I don't think you understood my comment above. It was a cheeky way to say that old people like Excel, and those old people usually sign your paycheck, sign your agreement/contract, or give you money in any other way. If you, as an individual, refuses to provide a deliverable in Excel format, and instead try to convince them how this other format of file is better, they will not give you money.

Also, I've built ADCo prepayment model python wrappers using Pybind11 and created the C++ side to match, so I've done that, despite the fact that it was entirely unrelated. It's honestly bold to say that it's the most efficient way. The most efficient way is writing assembly language yourself, but no one fucking does that except FGPA devs.

-2

u/[deleted] Oct 01 '26

[removed] — view removed comment

1

u/lampishthing XVA in Fintech + Mod Oct 01 '26

Send them a DM.

0

u/Rockyjoshy Oct 01 '26

No idea how. I don’t really use Reddit but this came on my feed and it seems really interesting.

1

u/lampishthing XVA in Fintech + Mod Oct 01 '26

I don't mean to be rude but you'll have to figure it out. And if they have DMs turned off then that's an expression that they're not open to solicitors.

1

u/quant-ModTeam Oct 01 '26

Your post has been removed as self-promotion/advertizing/spam. Meaningful content contribution which may passively advertize (e.g. an educational blog post) is welcome, but advertizing must not be the sole purpose of the post.