Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 289 forks source link

Cannot connect due to 2-way authentication #47

Closed JafferWilson closed 5 years ago

JafferWilson commented 5 years ago

Hello @Lu-Yi-Hsun, I have faced the following issue. My account has 2 way verification due to security reasons. I got the following error log:

ERROR:root:**error** connect() fail
DEBUG:iqoptionapi.api:https://auth.iqoption.com/api/v1.0/login
DEBUG:iqoptionapi.api:<Response [429]>
DEBUG:iqoptionapi.api:{"data":{"ttl":3428},"errors":[{"code":301,"title":"Login limit exceeded"}]}
DEBUG:iqoptionapi.api:{'Connection': 'keep-alive', 'Content-Type': 'application/json; charset=utf-8', 'Access-Control-Allow-Headers': 'Accept, Accept-Language, Content-Type, YourOwnHeader', 'Date': 'Tue, 06 Nov 2018 09:53:30 GMT', 'Access-Control-Allow-Methods': 'POST, GET, OPTIONS, PUT, DELETE', 'Content-Length': '76', 'Server': 'nginx', 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': 'true'}
DEBUG:iqoptionapi.api:<RequestsCookieJar[]>
ERROR:root:**error** connect() fail
DEBUG:iqoptionapi.api:https://auth.iqoption.com/api/v1.0/login

Please let me know what I can do for that?

Lu-Yi-Hsun commented 5 years ago

@JafferWilson

yes i have not implement that support 2-way authentication.

i suggest close 2-way authentication because your robot will stop until get the "2-way authentication code"

  1. i add 2-way in api

2.you close 2-way authentication