Lu-Yi-Hsun / iqoptionapi

IQ Option API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Login retry

Savalinn opened this issue · 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

commented

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.

commented

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

commented

@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!