Lu-Yi-Hsun / iqoptionapi

IQ Option API
373 stars 289 forks source link

Login retry #22

Open Savalinn opened 6 years ago

Savalinn commented 6 years ago

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

Lu-Yi-Hsun commented 6 years ago

I will add that

PoYuTsai commented 6 years ago

I got the same problem

ArthurAlbert990 commented 6 years ago

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.

Lu-Yi-Hsun commented 6 years ago

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

Lu-Yi-Hsun commented 6 years ago

@Savalinn @PoYuTsai @ArthurAlbert990 i think i fix that

you can try last version

binary24x commented 5 years ago

hi can you add this for metatrader?

FabioAlbano commented 5 years ago

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!

Lu-Yi-Hsun commented 5 years ago

@FabioAlbano

update to last version and try this sample

https://github.com/Lu-Yi-Hsun/iqoptionapi#reconnectcheck-connect

FabioAlbano commented 5 years ago

Worked, thanks!

binary24x commented 5 years ago

can you connect now?

On Thu, Oct 24, 2019 at 8:30 AM FabioAlbano notifications@github.com wrote:

Sorry, I didn't pay attention to set to (-1)... Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Lu-Yi-Hsun/iqoptionapi/issues/22?email_source=notifications&email_token=AJLLCUZRL6ZUXMPA2D5TVOTQQEFUHA5CNFSM4FFHQ4O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECDQRYQ#issuecomment-545720546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLLCUYJLC2VDDWEP5AYCSDQQEFUHANCNFSM4FFHQ4OQ .