Bitcoin Forum
April 25, 2018, 05:04:57 AM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: MtGox API and UI issues  (Read 1166 times)
pent
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500



View Profile
December 20, 2011, 03:49:34 PM
 #1

about 24 hours ago my software stopped to getting latest trades list via API. The code is:
Code:
<?
$ch=curl_init('https://mtgox.com/code/data/getTrades.php');
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,10);
curl_setopt($ch,CURLOPT_TIMEOUT,15);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
$headers = array(
//      "Host: mtdox.com",
        "User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30",
        "Accept: */*",
        "Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4",
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$ret=curl_exec($ch);
if (curl_errno($ch)!=0) {
    echo curl_error($ch);
    curl_close($ch);
    exit;
}
curl_close($ch);

It now constantly produces the CURL error:
Quote
Operation timed out after 15 seconds with 1835008 bytes received

I also tried tis code under three different servers in 3 different locations. All the same.

The second issue is to new UI usability via google Chrome. I use latest Google Chrome under Linux (Fedora 15). Login button does not work very frequently. I just press it and nothing happens. Also many other buttons inside trade area also do not produce any actions - "buy bitcoins" & "sell bitcoins" buttons. Also any other objects with onclick action also buggy. Header trade graph for example. I click to get it visible and nothing happens.

These onclick objects start to work after I reload page once or twice. So my trade day is full of page refreshes ))

Please fix these bugs. Thnx
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
copumpkin
Donator
Sr. Member
*
Offline Offline

Activity: 266
Merit: 250


I'm actually a pineapple


View Profile
December 20, 2011, 04:10:45 PM
 #2

Isn't that the old API, which they've been saying they were deprecating for a while now? They might have finally killed it. https://en.bitcoin.it/wiki/MtGox/API has more info on its replacements.
pent
Hero Member
*****
Offline Offline

Activity: 490
Merit: 500



View Profile
December 20, 2011, 04:16:41 PM
 #3

Isn't that the old API, which they've been saying they were deprecating for a while now? They might have finally killed it. https://en.bitcoin.it/wiki/MtGox/API has more info on its replacements.
Changed URL to https://mtgox.com/api/0/data/getTrades.php

Same result.

Operation timed out after 15 seconds with 1720320 bytes received
MagicalTux
VIP
Hero Member
*
Offline Offline

Activity: 608
Merit: 500


Working on new MtGox features


View Profile WWW
December 20, 2011, 09:46:48 PM
 #4

I would guess your server or access location do not have enough bandwidth to download this whole array in 15 seconds.

Change this line:

Code:
curl_setopt($ch,CURLOPT_TIMEOUT,15);

To:


Code:
curl_setopt($ch,CURLOPT_TIMEOUT,60);

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!