Skip to content
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

Open
victorjabur opened this issue Jul 16, 2017 · 5 comments
Open

Performance Problems - Too Slow #7

victorjabur opened this issue Jul 16, 2017 · 5 comments

Comments

@victorjabur
Copy link

victorjabur commented Jul 16, 2017

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.

@yassinemaaroufi
Copy link
Owner

yassinemaaroufi commented Jul 16, 2017 via email

@surajthorat
Copy link

surajthorat commented Dec 2, 2020

@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.

@iceboal
Copy link

iceboal commented Dec 27, 2020

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.

@apmcodes
Copy link

Is there a performant library to get option greeks from option prices

@purohitank
Copy link

Look for py-vollib-vectorized. Here is the link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants