1

MtGox Streaming API is down or is something wrong with the code.

I used this example https:// bitbucket.org/nitrous/mtgox-api/src/004c254993963baeb239ac7ac7f676b5024fc93f/socket/ws.client.html?at=master

You can see the example here http://atc.leadsoft.eu/test.html

I entered the server url (https://socketio.mtgox.com/mtgox) and click connect, but most of the time it writes only Connected or Connection timeout and freezes.

  • Please paste the code itself here. – Emre Kenci Sep 19 '13 at 13:32
  • You have the code in the first link .... bitbucket.org/nitrous/mtgox-api/src/… – leadsoft Sep 19 '13 at 14:08
  • You need the code here mate. Not a link. And you need to give us the actual few lines that is not working. Not 327 lines of code. This is if you want your question answered – Emre Kenci Sep 19 '13 at 15:45
  • I think this would be better posted on StackExchange. Mt. Gox is loosing lot's of customers right now, by the way. – DrAwesome Sep 19 '13 at 20:32
1

Basically Mtgox's api sucks. It's not your fault, its theirs. It's almost impossible to programmatically get a good reading of their order book. socket.io only works about 20% of the time and the http api often gives just wrong information.

To get around this I have several server instances constantly reconnecting an disconnecting until a successful steam is established and then it reports back to me until it fails. The idea is to always have at least one working stream.

I realize this can be incredibly impractical so you may want to use a service like bitcoin charts which has their own api, but if you need data more then every 15 min you will either have to pay or come up with some round about solution.

Here's some other people complaining about the same thing. One suggests using websockets and claims that he's had more success.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.