Bitcoin Forum
November 02, 2024, 08:55:19 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Huobi API  (Read 888 times)
blankia (OP)
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
March 17, 2014, 11:05:44 PM
 #1

Hi there,

I need some help accessing the huobi api.  http://market.huobi.com/staticmarket/detail.html
in PHP

$obj =
{
    "sells": [
        {
            "price": 3840,
            "level": 0,
            "amount": 1
        },
        {
            "price": "3840.05",
            "level": 0,
            "amount": 0.287
        },
        {
            "price": 3841,
            "level": 0,
            "amount": 0.1
        } ],
 "p_new": 3838,
    "level": -72.12,
    "amount": 82792,
    "total": 321774060.34653,
    "amp": -2,
    "p_open": 3910.12,
    "p_high": 3925,
    "p_low": 3809.99,
    "p_last": 3910.12
}
      
                echo "Ask     " . $obj->sells[0]->price; // does not work
                echo "Volume" . $obj->amount;// does not work

Help will be appreciated.
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!