RustQuant: A Library for Quantitative Finance
github.com
github.com
I don't mean to belittle this project. It's substantial, and there's some cool stuff in there! But automatic differentiation and a Monte Carlo solver, but no spline curve or swaps? What can you actually do with this?
> Disclaimer: This is currently a free-time project and not a professional financial software library. Nothing in this library should be taken as financial advice, and I do not recommend you to use it for trading or making financial decisions.
It's a hobby project.
Using rust to do exploratory analysis in python seems like a misguided idea. But using rust to productize models that have performance and accuracy sensitivities, the things that C/C++ is still used for, indeed sounds like a good idea.
Most of the python libraries used in finance, like numpy/pandas, call out to C for performance reasons; the libraries are essentially python bindings + syntax to C functions. It would be interesting to think about replacing that backend with rust.
Lots of this going on already - check out projects like Polars and DataFusion.
However, I wonder if it wouldn't reach a far greater audience in C++?
https://github.com/quantlib/QuantLib
The appeal of writing one in Rust is that you could use it ergonomically in Rust!