-
Notifications
You must be signed in to change notification settings - Fork 47
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
Division by Zero #1
Comments
Пока добавил проверку на 0 и... не придумал какой процент в этом случае ставить :) |
И далее... вероятно, по этой же причине (по акции нет ни одной строки истории. Мне её "выделили", но я не покупал, не продавал). Traceback (most recent call last): |
У меня тоже возник |
К тому же в 130 строке main.py. Добавил бы проверку на 0. |
|
File "./main.py", line 245, in
my_positions = creating_positions_objects()
File "./main.py", line 73, in creating_positions_objects
percent_change = ((market_price / this_pos.average_position_price.value) * 100) - 100
decimal.InvalidOperation: [<class 'decimal.DivisionUndefined'>]
Похоже что пытается поделить на ноль. У меня есть акции VTRS, которые достались мне выделением от PFE по нулевой цене :)
The text was updated successfully, but these errors were encountered: