Closed gpiedimonte closed 5 years ago
same problem. not all time but same .... put not work... no action if no print error....
Every request in api is socket based and asynchronous, there will be a time delay between request and response, it depends on your Internet speed and/or response time of the server. If data is not available even after requesting it, data hasn't arrived yet.
You can handle it with a while loop and a delay, like the following:
You should handle the posibility that you never get a response, so implement a counter in the else block and break out after x times.
It's the simplest implementation to handle this problem.
You can try the code written here https://github.com/harwee/IQOption-Api/tree/async If you face any difficulty please reopen the issue
Hello I've tryed the following script
the following functions doesn't works, the
update_expiration_list
doesn't populateapi.binary_expiration_list
propertyUpdate Expiration list
api.update_expiration_list("EURUSD")
Get Expiration Listprint(api.binary_expiration_list["EURUSD"])
indeed when I try to put a buy action using:
I obtain:
Checking
api.binary_expiration_list
is empty