Bitcoin Forum

Economy => Trading Discussion => Topic started by: osmosis on February 17, 2012, 06:24:07 PM



Title: Gox socket.io streaming, Python - complete example code
Post by: osmosis on February 17, 2012, 06:24:07 PM
.


Title: Re: Gox socket.io streaming, Python - complete example code
Post by: nmat on February 18, 2012, 05:53:32 AM
Thank you :)


Title: Re: Gox socket.io streaming, Python - complete example code
Post by: icside on October 25, 2012, 01:54:56 AM
This code occasionally will raise a "ConnectionClosedException" when streaming depth updates (I assume thereby creating a zombie thread). It then creates a new thread and attempts to connect again. This process continues until eventually it segfaults. Any chance you have any updates to this code or ideas on what needs to change to deal with the MtGox disconnects? Has MtGox said anything about mitigating the disconnects?

Many thanks, no matter, for mostly working code--it was a great kickstart.


Title: Re: Gox socket.io streaming, Python - complete example code
Post by: osmosis on November 03, 2012, 05:42:59 AM
This code occasionally will raise a "ConnectionClosedException" when streaming depth updates (I assume thereby creating a zombie thread). It then creates a new thread and attempts to connect again. This process continues until eventually it segfaults. Any chance you have any updates to this code or ideas on what needs to change to deal with the MtGox disconnects? Has MtGox said anything about mitigating the disconnects?

Many thanks, no matter, for mostly working code--it was a great kickstart.

I am curious about fixes for the "ConnectionClosedException" as well.  Currently I just catch it as an exception and then reset the state of my app so that it keeps running, but I would like to see a better OOP way of handling this.