IQOption-Api icon indicating copy to clipboard operation
IQOption-Api copied to clipboard

Optional auto reconnect feature

Open cdgn-coding opened this issue 5 years ago • 1 comments

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

cdgn-coding avatar Jul 02 '19 06:07 cdgn-coding

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.

harwee avatar Jul 03 '19 11:07 harwee