Bitcoin Forum
October 19, 2021, 08:55:22 AM *
News: Latest Bitcoin Core release: 22.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help accessing Huobi API  (Read 361 times)
blankia
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
March 14, 2014, 09:39:05 AM
 #1

Hi there,

I need some help accessing the huobi api.
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 "test1     " . $obj->sells[0]->price;
                echo "test2     " . $obj->amount;


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!