Author

Topic: MtGox API and UI issues (Read 1304 times)

vip
Activity: 608
Merit: 501
-
December 20, 2011, 04: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);
hero member
Activity: 490
Merit: 500
December 20, 2011, 11:16:41 AM
#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
donator
Activity: 266
Merit: 252
I'm actually a pineapple
December 20, 2011, 11:10:45 AM
#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.
hero member
Activity: 490
Merit: 500
December 20, 2011, 10:49:34 AM
#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
Jump to: