Bitcoin Forum
October 21, 2017, 12:08:39 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: MtGox ticker issues  (Read 2437 times)
F4C3
Jr. Member
*
Offline Offline

Activity: 31



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;
});
});

Coin Daemon: A bitcoind Hosting Service
1508544519
Hero Member
*
Offline Offline

Posts: 1508544519

View Profile Personal Message (Offline)

Ignore
1508544519
Reply with quote  #2

1508544519
Report to moderator
1508544519
Hero Member
*
Offline Offline

Posts: 1508544519

View Profile Personal Message (Offline)

Ignore
1508544519
Reply with quote  #2

1508544519
Report to moderator
1508544519
Hero Member
*
Offline Offline

Posts: 1508544519

View Profile Personal Message (Offline)

Ignore
1508544519
Reply with quote  #2

1508544519
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508544519
Hero Member
*
Offline Offline

Posts: 1508544519

View Profile Personal Message (Offline)

Ignore
1508544519
Reply with quote  #2

1508544519
Report to moderator
1508544519
Hero Member
*
Offline Offline

Posts: 1508544519

View Profile Personal Message (Offline)

Ignore
1508544519
Reply with quote  #2

1508544519
Report to moderator
nodemaster
Full Member
***
Offline Offline

Activity: 176



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: 100


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



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
Jr. Member
*
Offline Offline

Activity: 31



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.

Coin Daemon: A bitcoind Hosting Service
Cryptoman
Hero Member
*****
Offline Offline

Activity: 728



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: 574



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.

15UFyv6kfWgq83Pp3yhXPr8rknv9m6581W
Valhalla1
Jr. Member
*
Offline Offline

Activity: 52


View Profile
June 19, 2011, 04:53:25 AM
 #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
Jr. Member
*
Offline Offline

Activity: 52


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!