n1nj4z33 / iqoptionapi

IQ Option API 4.x (Python 2.7) The project is obsolete and is not supported because of problems with access to IQ Options in Russia
119 stars 539 forks source link

ImportError: No module named 'iqoptionapi.api'; 'iqoptionapi' is not a package #85

Open elmschaym opened 6 years ago

elmschaym commented 6 years ago

help me why i got this error i already install the api

from iqoptionapi.api import IQOptionAPI ImportError: No module named 'iqoptionapi.api'; 'iqoptionapi' is not a package

remarco commented 6 years ago

https://stackoverflow.com/questions/338768/python-error-importerror-no-module-named maybe this help.

elmschaym commented 6 years ago

how about this problem i got None value for this sample code

api.getcandles(1, 60, 25)

somehow we need that wait. Don't ask me why. Otherwise we have no data

time.sleep(0.25) print api.candles, 'test', api.candles.candles_data data = api.candles.candles_data for candles in data: st = datetime.datetime.fromtimestamp(candles[0]+60).strftime('%Y-$') ''' candles data 0th entry: timestamp of candle 1st entry: where candles starts in the interval 2nd entry: where candles finishes in the interval 3rd entry: upper wick 4th entry: lower wick ''' print st, candles

remarco commented 6 years ago

i dont know. never got none... only error or data... code work for me . i install iqoptionapi manualy. becose pip install iqoptionapi install something befor latest changes...

remarco commented 6 years ago

value NONE print if you are not loged in ... check your login and pass

elmschaym commented 6 years ago

hi @remarco you know how to get price position in real time?

remarco commented 6 years ago

no i dont....