Lu-Yi-Hsun / iqoptionapi

IQ Option API
372 stars 289 forks source link

getprofile route isnt workin #71

Closed el0911 closed 5 years ago

el0911 commented 5 years ago

hey dude appreciate the API i really do but some bugs are making it quite hard to use the example the login route which i managed to fix and the getprofile route which i can't fix

Lu-Yi-Hsun commented 5 years ago

@virgincodes Give me Sample code,log file

el0911 commented 5 years ago

DEBUG:iqoptionapi.ws.client:{"name":"front","msg":"ws10b"} DEBUG:iqoptionapi.ws.client:{"name":"timeSync","msg":1548496525632} DEBUG:iqoptionapi.ws.client:{"name":"heartbeat","msg":1548496525632} DEBUG:iqoptionapi.api:{"msg": {"msg": {"userTime": 1548496525000, "heartbeatTime": 1548496525632}}, "name": "heartbeat"} DEBUG:iqoptionapi.api:https://api.iqoption.com/api/getprofile DEBUG:iqoptionapi.ws.client:{"name":"timeSync","msg":1548496526637} DEBUG:iqoptionapi.api:<Response [404]> DEBUG:iqoptionapi.api:404 page not found

On Sat, Jan 26, 2019 at 11:06 AM Anson notifications@github.com wrote:

@virgincodes https://github.com/virgincodes Give me Sample code,log file

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Lu-Yi-Hsun/iqoptionapi/issues/71#issuecomment-457818776, or mute the thread https://github.com/notifications/unsubscribe-auth/ALCiXvUodNvf1HZHiO2VAt8ICh6lhpYgks5vHCjAgaJpZM4aUFwY .

Lu-Yi-Hsun commented 5 years ago

@virgincodes i can work great

test your version 3.6.

Lu-Yi-Hsun commented 5 years ago

@virgincodes give me your sample code

check your version

from iqoptionapi.stable_api import IQ_Option
print(IQ_Option.__version__)
el0911 commented 5 years ago

version 3.6

Lu-Yi-Hsun commented 5 years ago

@virgincodes Give me your sample code,.

I still can not rebuild your bug

el0911 commented 5 years ago

dont get what u mean by that?

el0911 commented 5 years ago

the post request to https://api.iqoption.com/api/getprofile on the api is returning 404

Lu-Yi-Hsun commented 5 years ago

@virgincodes give me your python code.

in last version is request https://iqoption.com/api/getprofile

el0911 commented 5 years ago

OK THAT worked but the thing is that when i tried using https://iqoption.com/api/login it didnt work i had to get in the code and change the host to https://auth.iqoption.com/api/v1.0/login so it could work and that affected every route

Lu-Yi-Hsun commented 5 years ago

@virgincodes i think you work on old version. because last version is login:https://auth.iqoption.com/api/v1.0/login getprofile:https://iqoption.com/api/getprofile

Lu-Yi-Hsun commented 5 years ago

can you work this code?

import time
from iqoptionapi.stable_api import IQ_Option
I_want_money=IQ_Option("email","password")
goal="EURUSD"
print("get candles")
print(I_want_money.get_candles(goal,60,111,time.time()))
el0911 commented 5 years ago

giving me the same error

el0911 commented 5 years ago

wait i think ive seen my error it was created by me thinkering let me unisntall and reinstall and i would get back to u man thanks alot

Lu-Yi-Hsun commented 5 years ago

so iqoptionapi can work now?

el0911 commented 5 years ago

awesome man it works thanks