php-binance-api.php
private function tradesData(array $trades)
    {
        $output = [];
        foreach ($trades as $trade) {
            $price = $trade['p'];
            $quantity = $trade['q'];
            $timestamp = $trade['T'];
            $maker = $trade['m'] ? 'true' : 'false';
            $output[] = [
                "price" => $price,
                "quantity" => $quantity,
                "timestamp" => $timestamp,
                "maker" => $maker,
            ];
        }
        return $output;
    }
private function tradesData(array $trades)
    {
        $output = [];
        foreach ($trades as $trade) {
            $price = $trade['p'];
            $quantity = $trade['q'];
            $timestamp = $trade['T'];
            $maker = $trade['m'] ? 'true' : 'false';
            $output[] = [
                "price" => $price,
                "quantity" => $quantity,
                "timestamp" => $timestamp,
                "maker" => $maker,
            ];
        }
        return $output;
    }
private function tradesData ( array $ trades ) { $ output = [ ] ; foreach ( $ trades as $ trade ) { $ price = $ trade [ 'p' ] ; $ quantity = $ trade [ 'q' ] ; $ timestamp = $ trade [ 'T' ] ; $ maker = $ trade [ 'm' ] ? 'true' : 'false' ; $ output [ ] = [ "price" => $ price , "quantity" => $ quantity , "timestamp" => $ timestamp , "maker" => $ maker , ] ; } return $ output ; }
tradesData Convert aggTrades data into easier format

$tradesData = $this->tradesData($trades);

@param $trades array of trade information
@return array easier format for trade information
tradesData Convert aggTrades data into easier format