'self__server_timestamp' is not defined
Closed this issue · 1 comments
Aleandro21 commented
why have this error
if self.api.timesync.server_datetime.second == 0:
File "/usr/local/lib/python2.7/dist-packages/iqoptionapi/ws/objects/timesync.py", line 37, in server_datetime
return datetime.datetime.fromtimestamp(self.server_timestamp)
File "/usr/local/lib/python2.7/dist-packages/iqoptionapi/ws/objects/timesync.py", line 24, in server_timestamp
return self__server_timestamp / 1000
NameError: global name 'self__server_timestamp' is not defined
harwee commented
You can try the code written here https://github.com/harwee/IQOption-Api/tree/async If you face any difficulty please reopen the issue