php-binance-api.php
public function highstock(array $chart, bool $include_volume = false)
    {
        $array = [];
        foreach ($chart as $timestamp => $obj) {
            $line = [
                $timestamp,
                floatval($obj['open']),
                floatval($obj['high']),
                floatval($obj['low']),
                floatval($obj['close']),
            ];
            if ($include_volume) {
                $line[] = floatval($obj['volume']);
            }

            $array[] = $line;
        }
        return $array;
    }
public function highstock(array $chart, bool $include_volume = false)
    {
        $array = [];
        foreach ($chart as $timestamp => $obj) {
            $line = [
                $timestamp,
                floatval($obj['open']),
                floatval($obj['high']),
                floatval($obj['low']),
                floatval($obj['close']),
            ];
            if ($include_volume) {
                $line[] = floatval($obj['volume']);
            }

            $array[] = $line;
        }
        return $array;
    }
public function highstock ( array $ chart , bool $ include_volume = false ) { $ array = [ ] ; foreach ( $ chart as $ timestamp => $ obj ) { $ line = [ $ timestamp , floatval ( $ obj [ 'open' ] ) , floatval ( $ obj [ 'high' ] ) , floatval ( $ obj [ 'low' ] ) , floatval ( $ obj [ 'close' ] ) , ] ; if ( $ include_volume ) { $ line [ ] = floatval ( $ obj [ 'volume' ] ) ; } $ array [ ] = $ line ; } return $ array ; }
highstock Converts Chart Data into array for highstock & kline charts

$highstock = $api->highstock($chart, $include_volume);

@param $chart array
@param $include_volume bool for inclusion of volume
@return array highchart data
highstock Converts Chart Data into array for highstock & kline charts