Bitcoin Forum
May 05, 2024, 09:05:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Gox socket.io streaming, Python - complete example code  (Read 2531 times)
osmosis (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile
February 17, 2012, 06:24:07 PM
Last edit: August 25, 2014, 11:10:36 PM by osmosis
 #1

.
1714899901
Hero Member
*
Offline Offline

Posts: 1714899901

View Profile Personal Message (Offline)

Ignore
1714899901
Reply with quote  #2

1714899901
Report to moderator
Be very wary of relying on JavaScript for security on crypto sites. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714899901
Hero Member
*
Offline Offline

Posts: 1714899901

View Profile Personal Message (Offline)

Ignore
1714899901
Reply with quote  #2

1714899901
Report to moderator
1714899901
Hero Member
*
Offline Offline

Posts: 1714899901

View Profile Personal Message (Offline)

Ignore
1714899901
Reply with quote  #2

1714899901
Report to moderator
1714899901
Hero Member
*
Offline Offline

Posts: 1714899901

View Profile Personal Message (Offline)

Ignore
1714899901
Reply with quote  #2

1714899901
Report to moderator
nmat
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501


View Profile
February 18, 2012, 05:53:32 AM
 #2

Thank you Smiley
icside
Member
**
Offline Offline

Activity: 117
Merit: 10


View Profile WWW
October 25, 2012, 01:54:56 AM
 #3

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.

osmosis (OP)
Sr. Member
****
Offline Offline

Activity: 300
Merit: 250



View Profile
November 03, 2012, 05:42:59 AM
 #4

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!