Author

Topic: MtGox ticker issues (Read 2599 times)

newbie
Activity: 51
Merit: 0
June 19, 2011, 12:34:14 PM
#9
ugh...

now the ticker seems to be 'stuck' on $17.51  for "last"  on https://mtgox.com/code/data/ticker.php

even though bitcoins are trading in the $12.xx on mtgox.   wtf
newbie
Activity: 51
Merit: 0
June 18, 2011, 11:53:25 PM
#8
I'm having issues with a php/curl script I've been using to grab the mtgox ticker.  It was working fine and now it fails, I believe it is a problem with the ssl certificate.

whats up with that?  is there a cert problem for anyone else that popped up as of Saturday?
hero member
Activity: 588
Merit: 500
May 12, 2011, 02:29:19 PM
#7
It times out for my android app all the time Sad 

Android app was updated on the market yesterday.
hero member
Activity: 726
Merit: 500
May 12, 2011, 11:55:26 AM
#6
Yesterday i found that there was a redirect to HTTPS if you were accessing via HTTP. This redirect however was broken (missing trailing slash). I changed my scripts to use HTTPS and everything works as expected. Hope that helps?

This fixed things for me too.  I also had to disable SSL certificate validation.
newbie
Activity: 31
Merit: 0
May 12, 2011, 08:57:36 AM
#5
I think one of the biggest issues with the way mtgox put together their feed is that their server requires you to post for a jsonp if you are doing cross-domain scripting, which is correctly.  However, when they return the content type, it comes back as text/html.  This causes the $.get() in jQuery to break as it was expecting the headers to read application/json, I'd love if magical tux would correct the headers sent back.
full member
Activity: 176
Merit: 100
May 12, 2011, 08:22:49 AM
#4
It times out for my android app all the time Sad 

Same here. I guess its using the HTTP connection as there is no confidential data transmitted.
member
Activity: 99
Merit: 10
May 12, 2011, 08:20:34 AM
#3
It times out for my android app all the time Sad 
full member
Activity: 176
Merit: 100
May 12, 2011, 01:33:04 AM
#2
Yesterday i found that there was a redirect to HTTPS if you were accessing via HTTP. This redirect however was broken (missing trailing slash). I changed my scripts to use HTTPS and everything works as expected. Hope that helps?
newbie
Activity: 31
Merit: 0
May 11, 2011, 08:38:57 PM
#1
Does anyone else have trouble pulling a jQuery.get() from the mtgox /code/data/ticker.php?  For the life of me I couldn't figure out why my jsonp request failed repeatedly.  I put together a relay script to return it correctly, at least for my scripts.  Feel free to use it.

http://btc.jalder.com/mtgox.php

example usage:
Code:
$(document).ready(function() {
$('#update').click(function(){
     $.get('http://btc.jalder.com/mtgox.php',null,function(data){
$.each(data, function() {
$.each(this, function(k,v) {
                                       //Do something interesting with the data
});
});
},'jsonp');
              return false;
});
});
Jump to: