php-binance-api.php
private function balanceHandler(array $json)
    {
        $balances = [];
        foreach ($json as $item) {
            $asset = $item->a;
            $available = $item->f;
            $onOrder = $item->l;
            $balances[$asset] = [
                "available" => $available,
                "onOrder" => $onOrder,
            ];
        }
        return $balances;
    }
private function balanceHandler(array $json)
    {
        $balances = [];
        foreach ($json as $item) {
            $asset = $item->a;
            $available = $item->f;
            $onOrder = $item->l;
            $balances[$asset] = [
                "available" => $available,
                "onOrder" => $onOrder,
            ];
        }
        return $balances;
    }
private function balanceHandler ( array $ json ) { $ balances = [ ] ; foreach ( $ json as $ item ) { $ asset = $ item -> a ; $ available = $ item -> f ; $ onOrder = $ item -> l ; $ balances [ $ asset ] = [ "available" => $ available , "onOrder" => $ onOrder , ] ; } return $ balances ; }
balanceHandler Convert balance WebSocket data into array

$data = $this->balanceHandler( $json );

@param $json array data to convert
@return array
balanceHandler Convert balance WebSocket data into array