Skip to content
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

Login retry #22

Open
Savalinn opened this issue Jun 15, 2018 · 10 comments
Open

Login retry #22

Savalinn opened this issue Jun 15, 2018 · 10 comments

Comments

@Savalinn
Copy link

Savalinn commented Jun 15, 2018

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
Copy link
Owner

I will add that

@PoYuTsai
Copy link

I got the same problem

@ArthurAlbert990
Copy link

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
Copy link
Owner

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

@Lu-Yi-Hsun
Copy link
Owner

Lu-Yi-Hsun commented Jun 20, 2018

@Savalinn @PoYuTsai @ArthurAlbert990
i think i fix that

you can try last version

ubaidsworld added a commit to ubaidsworld/iqoptionapi that referenced this issue Apr 8, 2019
The login limit error can be avoided if the api try limited time to login. Please try it and make the respective changes so that it will be helpful in the issue: Lu-Yi-Hsun#22
@binary24x
Copy link

hi can you add this for metatrader?

@FabioAlbano
Copy link

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
Copy link
Owner

Lu-Yi-Hsun commented Oct 24, 2019

@FabioAlbano

update to last version and try this sample

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

@FabioAlbano
Copy link

FabioAlbano commented Oct 24, 2019

Worked, thanks!

@binary24x
Copy link

binary24x commented Oct 24, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants