iqoptionapi
iqoptionapi copied to clipboard
buy or sell not work , 'IQ_Option' object has no attribute 'api'
Why don't work ?
python test.py
get candles
Traceback (most recent call last):
File "test.py", line 8, in
I_want_money = IQ_Option("email", "password") check, reason = I_want_money.connect()
You need add .connect()
hwo can'i add .connect() ???
Where is the code?
I_want_money = IQ_Option('email','password') check = I_want_money.connect() if check: print("####connect successfully####") else: print("####connect failed####")
goal=input("enter Asset :") print("balance : ", I_want_money .get_balances()) check = I_want_money.connect() line 90, in connect self.api.set_session(headers=self.SESSION_HEADER, cookies=self.SESSION_COOKIE) AttributeError: 'IQOptionAPI' object has no attribute 'set_session'
velas = API.get_candles(par, int(timeframe) * 60, 20, time.time()) File "C:\Python37\lib\site-packages\iqoptionapi-6.8.9.1-py3.7.egg\iqoptionapi\stable_api.py", line 454, in get_candles self.api.candles.candles_data = None AttributeError: 'IQ_Option' object has no attribute 'api'
check, id = API.buy_digital_sport_v2(ativo,valor,direcao,exp)
AttributeError: 'IQ_Option' object has no attribute 'buy_digital_sport_v2'
nao consigo resolver esse problema