Websocket example for traded volume

Hello. I would like to get same data, that are in standard Binance trading graph below symbol rate - the volume of trades, that are counted by sale (red) or buy (green) and grouped by time unit of main graph.

I have tried several websocket streams (ticker, mini_tiker etc…) and when I sum up values that I get (or calculate difference between traded volume at beginning and end of the interval), I never get same values as in the binance trading graph.

May I please ask for websocket example which shows cumulative traded volume for some defined interval, like 1min? Also, I need to distinguish if cumulative volume were sales or buys.

Please check this kline stream, which send trading volumes message for different intervals.