php-binance-api.php
private function tickerStreamHandler(\stdClass $json)
    {
        return [
            "eventType" => $json->e,
            "eventTime" => $json->E,
            "symbol" => $json->s,
            "priceChange" => $json->p,
            "percentChange" => $json->P,
            "averagePrice" => $json->w,
            "prevClose" => $json->x,
            "close" => $json->c,
            "closeQty" => $json->Q,
            "bestBid" => $json->b,
            "bestBidQty" => $json->B,
            "bestAsk" => $json->a,
            "bestAskQty" => $json->A,
            "open" => $json->o,
            "high" => $json->h,
            "low" => $json->l,
            "volume" => $json->v,
            "quoteVolume" => $json->q,
            "openTime" => $json->O,
            "closeTime" => $json->C,
            "firstTradeId" => $json->F,
            "lastTradeId" => $json->L,
            "numTrades" => $json->n,
        ];
    }
private function tickerStreamHandler(\stdClass $json)
    {
        return [
            "eventType" => $json->e,
            "eventTime" => $json->E,
            "symbol" => $json->s,
            "priceChange" => $json->p,
            "percentChange" => $json->P,
            "averagePrice" => $json->w,
            "prevClose" => $json->x,
            "close" => $json->c,
            "closeQty" => $json->Q,
            "bestBid" => $json->b,
            "bestBidQty" => $json->B,
            "bestAsk" => $json->a,
            "bestAskQty" => $json->A,
            "open" => $json->o,
            "high" => $json->h,
            "low" => $json->l,
            "volume" => $json->v,
            "quoteVolume" => $json->q,
            "openTime" => $json->O,
            "closeTime" => $json->C,
            "firstTradeId" => $json->F,
            "lastTradeId" => $json->L,
            "numTrades" => $json->n,
        ];
    }
private function tickerStreamHandler ( \ stdClass $ json ) { return [ "eventType" => $ json -> e , "eventTime" => $ json -> E , "symbol" => $ json -> s , "priceChange" => $ json -> p , "percentChange" => $ json -> P , "averagePrice" => $ json -> w , "prevClose" => $ json -> x , "close" => $ json -> c , "closeQty" => $ json -> Q , "bestBid" => $ json -> b , "bestBidQty" => $ json -> B , "bestAsk" => $ json -> a , "bestAskQty" => $ json -> A , "open" => $ json -> o , "high" => $ json -> h , "low" => $ json -> l , "volume" => $ json -> v , "quoteVolume" => $ json -> q , "openTime" => $ json -> O , "closeTime" => $ json -> C , "firstTradeId" => $ json -> F , "lastTradeId" => $ json -> L , "numTrades" => $ json -> n , ] ; }
tickerStreamHandler Convert WebSocket ticker data into array

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

@param $json object data to convert
@return array
tickerStreamHandler Convert WebSocket ticker data into array