-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance Problems - Too Slow #7
Comments
Hi,
I am all ears if you have a solution to optimize the library.
You also can develop one yourself and I can integrate it in the code.
…On Sun, Jul 16, 2017 at 4:59 AM, Victor Hugo Jabur Passavaz < ***@***.***> wrote:
I'm trying to calculate implied volatility and the greeks for around
40.000 options.
It takes me almost 20 minutes against another algorithm that makes the
same job in a fast way (less than 2 minutes).
Maybe it will need a better use of libraries like numpy and pandas in
order to get things faster.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ABHtP1UnLNi8lMsoiZ6OpG3atXVM8vo2ks5sOYq8gaJpZM4OZMSC>
.
|
@yassinemaaroufi thank you for the great library. This is one of the most userfriendly library if I need to calculate metrics for 1 option but I have come across the same problem. @victorjabur can you post the library that gets things done faster? Even I am looking for a similar solution where in I have a lot of options in a data frame and need to calculate their implied volatility and greeks. |
I haven't tested it but I suspect it's because this loop is slow sometimes. Especially when the input is invalid and doesn't have a solution (I ran into it when my underlying spot price and the option price isn't fetched from the same time). Perhaps you can tweak the constants or use a more efficient solver. @surajthorat I can PM you if you are still looking for solutions. |
Is there a performant library to get option greeks from option prices |
Look for py-vollib-vectorized. Here is the link. |
I'm trying to calculate implied volatility and the greeks for around 40.000 options.
It takes me almost 20 minutes against another algorithm that do the same job in a fast way (less than 2 minutes).
Maybe it will need a better use of libraries like numpy and pandas in order to get things faster.
The text was updated successfully, but these errors were encountered: