IQOption-Api
IQOption-Api copied to clipboard
Optional auto reconnect feature
Hello, first of all thank you very much for your effort constructing this library.
I'm using this library to test strategies. Sometimes the connection gets closed, I was thinking that an optional auto reconnect feature may be useful for this.
I would help you implement this if we think of an implementation before hand.
Regards
You can try replacing https://github.com/harwee/IQOption-Api/blob/async/iqoption_api/api.py#L147 with await self.establish_socket_connection_and_run()
, that should re establish the socket connection when it is dropped.