Bitcoin Forum
November 11, 2024, 06:38:45 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox ticker issues  (Read 2599 times)
F4C3 (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0



View Profile
May 12, 2011, 01:38:57 AM
 #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;
});
});
nodemaster
Full Member
***
Offline Offline

Activity: 176
Merit: 100



View Profile WWW
May 12, 2011, 06: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?
trumpetx
Member
**
Offline Offline

Activity: 99
Merit: 10


View Profile
May 12, 2011, 01:20:34 PM
 #3

It times out for my android app all the time Sad 

MinerStatus Android Application Author
Donate: 1Eyr5mN54UyprUHAw1zXLvkvtDNeG9erD7 to support this project. (Total Received) or sign up for Tradehill
nodemaster
Full Member
***
Offline Offline

Activity: 176
Merit: 100



View Profile WWW
May 12, 2011, 01:22:49 PM
 #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.
F4C3 (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0



View Profile
May 12, 2011, 01:57:36 PM
 #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.
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
May 12, 2011, 04:55:26 PM
 #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.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
May 12, 2011, 07:29:19 PM
 #7

It times out for my android app all the time Sad 

Android app was updated on the market yesterday.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
Valhalla1
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
June 19, 2011, 04:53:25 AM
Last edit: June 19, 2011, 05:38:27 AM by Valhalla1
 #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?
Valhalla1
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
June 19, 2011, 05: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
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!