Author

Topic: Need help accessing Huobi API (Read 399 times)

newbie
Activity: 27
Merit: 0
March 14, 2014, 04: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;


Jump to: