-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
get_digital_spot_profit_after_sale division error #144
Comments
i'm handling like this for now
|
Thank I will fix that |
fix |
Hi @Lu-Yi-Hsun ,
So I'm running multiple threads at the same time, and if you run this code you will see that sometimes it returns I also tried this with version 5.1 and it was working fine I think you can revert it back or do more test on this? |
@kkagill The answer to this is already given by @Lu-Yi-Hsun many times. The API is not thread safe. You cannot use thread with the api. Instead you can create the different applications for the different Symbols. |
@JafferWilson Have you even tried to look into code or execute my code snippets? This is caused by the recent change in version 5.2 I am aware that it's not thread safe, so I am locking it with |
This bug not fix? |
It fixed the division exception, but it's returning Please try my code snippets in both version 5.1 and 5.2.
|
@kkagill thank report i roll back the get_digital_spot_profit_after_sale first, and try to improve |
5.2.1 roll back the get_digital_spot_profit_after_sale, the get_digital_spot_profit_after_sale api is not perfect because some pice of code not crack yet i will try to decompiler other source code |
PL = I_want_money.iqOptionApi.get_digital_spot_profit_after_sale(buyId)
I found that I got this error msg
How to prevent this? maybe you can add a check for zero before you divide?
Ex:
The text was updated successfully, but these errors were encountered: