News for hackers. Stuff that matters.
Re:QuantMath: Financial maths library for risk-neutral prici... by surfsvammel on Sunday January 17, 2021 @03:31PM (#25814637)
Interesting. I will keep an eye on this. Two comments though: trying to handle corporate actions, instruments, pricing, risk as well as settlement in one library might be a bit too ambitious. Maybe it would be better to focus on just the pricing, or the risk part of things? The other comment, is that I would probably split products from the pricing. I looked at one of the product definitions and it seemed to be intertwined with pricing. Products and pricing can both be complex in an of themselves, and they are not necessarily conceptually coupled. Just my two cents.
Re:QuantMath: Financial maths library for risk-neutral prici... by fancyfredbot on Sunday January 17, 2021 @03:12PM (#25814458)
Great to see Morgan Stanley allow quants to work on open source projects directly related to their day job. I do not think all banks are as open minded!
Re:QuantMath: Financial maths library for risk-neutral prici... by orange_tee on Sunday January 17, 2021 @03:19PM (#25814522)
I am guessing but since this is for pricing and risk, it's a very different game from trading. In this particular situation they prefer to have a reliable piece of software that is shared and used by all. Just guessing.
Re:QuantMath: Financial maths library for risk-neutral prici... by klelatti on Sunday January 17, 2021 @03:24PM (#25814573)
Can anyone who is closer to this field suggest what the major options for open source libraries in this area would be? Quantlib? OpenGamma Strata?
Re:QuantMath: Financial maths library for risk-neutral prici... by 9NRtKyP4 on Sunday January 17, 2021 @03:46PM (#25814786)
It’s still under development but some at Google are writing a quant library in Tensorflow. https://github.com/google/tf-quant-finance
Re:QuantMath: Financial maths library for risk-neutral prici... by klelatti on Sunday January 17, 2021 @04:03PM (#25814931)
That looks really interesting and under active development - thanks.
Re:QuantMath: Financial maths library for risk-neutral prici... by p33p on Sunday January 17, 2021 @03:30PM (#25814627)
Those are the two most well known options, yes.
Re:QuantMath: Financial maths library for risk-neutral prici... by mellavora on Sunday January 17, 2021 @03:36PM (#25814684)
If you are comfortable with R, you could try xts/zoo/quantmod/PerformanceAnalytics/TTR
Re:QuantMath: Financial maths library for risk-neutral prici... by klelatti on Sunday January 17, 2021 @03:40PM (#25814719)
Thanks!
Re:QuantMath: Financial maths library for risk-neutral prici... by klelatti on Sunday January 17, 2021 @03:32PM (#25814653)
Thanks! Any views on the relative strengths of each would be much appreciated.
Re:QuantMath: Financial maths library for risk-neutral prici... by twic on Monday January 18, 2021 @07:30AM (#25821105)
Fun, but seems extremely limited. I can't see a way to bootstrap a yield curve for interest rates, which is the first thing i would need to do. The standard model for curves seems to bake in assumptions about day count convention and interpolation:

https://github.com/MarcusRainbow/QuantMath/blob/b51ffacc2cfe...

There is no provision for swaps or futures. Perhaps this is not aimed at rates use cases?

Re:QuantMath: Financial maths library for risk-neutral prici... by arthurcolle on Sunday January 17, 2021 @06:31PM (#25816384)
Nice, this is great. I was recently looking for some QuantLib bindings for Rust and its not really there yet.

There's a great book called Implementing QuantLib by Fabio Ballabio that is a really nice introduction to QuantLib for those that are interesting. It is really nice, has lots of term structure data structures built in and some datetime abstractions useful for pricing/risk calcs, and supports lots of financial instruments, like CDS, vanilla/exotic options, bond calculations. Just wonderful.

Re:QuantMath: Financial maths library for risk-neutral prici... by Dowwie on Sunday January 17, 2021 @03:32PM (#25814645)
Note the last commit date
Re:QuantMath: Financial maths library for risk-neutral prici... by adamnemecek on Sunday January 17, 2021 @03:50PM (#25814823)
8 months ago?
Re:QuantMath: Financial maths library for risk-neutral prici... by koolk3ychain on Sunday January 17, 2021 @03:44PM (#25814764)
What kind of maths are these libraries based on? Always been curious how math is used in finance to build investment strategies / gauge risk.
Re:QuantMath: Financial maths library for risk-neutral prici... by koolk3ychain on Sunday January 17, 2021 @09:35PM (#25817529)
Wow, thanks for putting this together!
Re:QuantMath: Financial maths library for risk-neutral prici... by arthurcolle on Sunday January 17, 2021 @11:20PM (#25818092)
Anytime, old sport