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

IndexError: list index out of range #10

Open
wmltyq opened this issue Dec 26, 2018 · 0 comments
Open

IndexError: list index out of range #10

wmltyq opened this issue Dec 26, 2018 · 0 comments

Comments

@wmltyq
Copy link

wmltyq commented Dec 26, 2018

Use example c = mibian.BS([1.4565, 1.45, 1, 30], volatility=20) output sussessful result, but c = mibian.GK([100, 100, 5, 30], volatility=25) is error. Why?

Traceback (most recent call last):
  File "xxx/opserver/option_calculator/app.py", line 16, in <module>
    c = mibian.GK([100, 100, 5, 30], volatility=25)
  File "xxx\opserver\lib\site-packages\mibian\__init__.py", line 78, in __init__
    self.daysToExpiration = float(args[4]) / 365
IndexError: list index out of range
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

1 participant