-
Hi, I'm trying to create a greeks pricer. I'm facing an Error and I'm not figuring it out. here's a part of my code :import numpy as np
Here's the error :Exception in Tkinter callback I've tried a lot, convert with np.float64 etc.. chatgpt doesn't seem to wanna help me xD |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I figured it out ! Thanks |
Beta Was this translation helpful? Give feedback.
-
What was your fix ? |
Beta Was this translation helpful? Give feedback.
-
Yes. As I thought. Tell me how it goes. Happy to get feedback and to know who is using financepy and why. |
Beta Was this translation helpful? Give feedback.
instead of :
option_type_value = OptionTypes[option_type_str]
option_direction = FinLongShort[option_direction_str]
I added '.value' at the end :
option_type_value = OptionTypes[option_type_str.upper()].value
option_direction = FinLongShort[option_direction_str.upper()].value