Bitcoin Forum
May 10, 2024, 10:20:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: MtGox API and UI issues  (Read 1280 times)
pent (OP)
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
1715379621
Hero Member
*
Offline Offline

Posts: 1715379621

View Profile Personal Message (Offline)

Ignore
1715379621
Reply with quote  #2

1715379621
Report to moderator
1715379621
Hero Member
*
Offline Offline

Posts: 1715379621

View Profile Personal Message (Offline)

Ignore
1715379621
Reply with quote  #2

1715379621
Report to moderator
"If you don't want people to know you're a scumbag then don't be a scumbag." -- margaritahuyan
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
copumpkin
Donator
Sr. Member
*
Offline Offline

Activity: 266
Merit: 252


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 (OP)
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: 501


-


View Profile
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!