The malee
package contains a collection of financial modeling functions.
The major goal of this package is to provide you an easy to use library that implements most of the financial modeling formulas like risk and return ready to be used. This package is using numpy
as its backend so everything is fast enough as you might expect. There are similar projects like numpy-financial
, but most of the have these two problems of 1) not having everything you might need 2) not being maintained actively. Hence this packages aims to fill this gap and be your goto library when you want financial modeling stuff.
malee
in Farsi means Financial. Tried so many other cool names, but I was late in the game
and they were already taken.
The source code of this package is available at https://github.com/RezaBehzadpour/malee
To install the current release of malee
, type the following command in terminal:
$ pip install -U malee
Here's how you can calculate simple Arithmetic Return:
>>> import malee
>>> malee.ar(100, 140)
0.4
For more information, see the documentation.