Title: MtGox ticker issues Post by: F4C3 on May 12, 2011, 01:38:57 AM 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() { Title: Re: MtGox ticker issues Post by: nodemaster on May 12, 2011, 06:33:04 AM 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?
Title: Re: MtGox ticker issues Post by: trumpetx on May 12, 2011, 01:20:34 PM It times out for my android app all the time :(
Title: Re: MtGox ticker issues Post by: nodemaster on May 12, 2011, 01:22:49 PM It times out for my android app all the time :( Same here. I guess its using the HTTP connection as there is no confidential data transmitted. Title: Re: MtGox ticker issues Post by: F4C3 on May 12, 2011, 01:57:36 PM 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.
Title: Re: MtGox ticker issues Post by: Cryptoman on May 12, 2011, 04:55:26 PM 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. Title: Re: MtGox ticker issues Post by: error on May 12, 2011, 07:29:19 PM It times out for my android app all the time :( Android app was updated on the market yesterday. Title: Re: MtGox ticker issues Post by: Valhalla1 on June 19, 2011, 04:53:25 AM 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? Title: Re: MtGox ticker issues Post by: Valhalla1 on June 19, 2011, 05:34:14 PM 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 |