Lu-Yi-Hsun/iqoptionapi

Login retry

Savalinn opened this issue · 10 comments

Hello,

My IP is banned to half hour because I make a typo in my login data. The script immediately try again and again the login with my wrong, misstyped data, therefore exist this issue.

How can I disable the automatic login loop, if logging in is failed? (to prevent the next ban)

image

image

image

I will add that

I got the same problem

Hello, this is how I fixed it:

go to "stable_api.py" and modify as:

On line 9, add:
import sys

On line 37, add:

print('Unable to login, please, verify your credentials.')
time.sleep(5)
sys.exit()`

After 5 seconds, your script will end.

@ArthurAlbert990
Thank for your share~
I will for reference your code

@Savalinn @PoYuTsai @ArthurAlbert990
i think i fix that

you can try last version

hi can you add this for metatrader?

If anyone can help me, but when reconnect fails, it exits the api. I want to take some time to try to reconect again and not exit/stop the program. Sorry, I'm new to python and try a few things but no sucess...
Thanks!

Worked, thanks!