sammchardy/python-binance

websocket freezes until enter key is pressed

Closed this issue · 2 comments

am using the bm.start_kline_socket(self.symbol, self.process_message, time_frame) method to recieve klines and print them to a shell. the problem is, sometimes, the connection hangs and does not print any klines while the market is moving. if it hangs for like 10 minutes, then I press the enter key, it now prints all the klines that had not been printed. I've checked issue 191 and 202 (almost similar) but could not find the solution.

this is a window's shell issue apparently, not the API. if the windows command prompt detects movement, it pauses the process and tries to capture input from user, pressing enter or any other key makes the process continue. am just posting the answer if anyone ever gets stuck here again. ;). go to CMD properties and uncheck QuickEditMode

this is a window's shell issue apparently, not the API. if the windows command prompt detects movement, it pauses the process and tries to capture input from user, pressing enter or any other key makes the process continue. am just posting the answer if anyone ever gets stuck here again. ;). go to CMD properties and uncheck QuickEditMode

Thank you sir. I faced the similar problem and searched all over the web to see if it's a bug of websocket. Really appreciate your answer.