php-binance-api.php
private function bookPriceData(array $array)
    {
        $bookprices = [];
        foreach ($array as $obj) {
            $bookprices[$obj['symbol']] = [
                "bid" => $obj['bidPrice'],
                "bids" => $obj['bidQty'],
                "ask" => $obj['askPrice'],
                "asks" => $obj['askQty'],
            ];
        }
        return $bookprices;
    }
private function bookPriceData(array $array)
    {
        $bookprices = [];
        foreach ($array as $obj) {
            $bookprices[$obj['symbol']] = [
                "bid" => $obj['bidPrice'],
                "bids" => $obj['bidQty'],
                "ask" => $obj['askPrice'],
                "asks" => $obj['askQty'],
            ];
        }
        return $bookprices;
    }
private function bookPriceData ( array $ array ) { $ bookprices = [ ] ; foreach ( $ array as $ obj ) { $ bookprices [ $ obj [ 'symbol' ] ] = [ "bid" => $ obj [ 'bidPrice' ] , "bids" => $ obj [ 'bidQty' ] , "ask" => $ obj [ 'askPrice' ] , "asks" => $ obj [ 'askQty' ] , ] ; } return $ bookprices ; }
bookPriceData Consolidates Book Prices into an easy to use object

$bookPriceData = $this->bookPriceData($array);

@param $array array book prices
@return array easier format for book prices information
bookPriceData Consolidates Book Prices into an easy to use object