Title: Huobi API Post by: blankia on March 17, 2014, 11:05:44 PM 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. |