Skip to content

TypeError: ufunc 'bs_delta' not supported for the input types #201

Closed Answered by zednotz
zednotz asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@domokane
Comment options

Comment options

You must be logged in to vote
1 reply
@zednotz
Comment options

Answer selected by domokane
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants