Volume calculation logic from tick data for 1 min candle?

Hi can anyone please suggest how to calculate 1 minute candle volume from tick data receiving from websocket?

Calculation. A CandleVolume candlestick consists of five components: open, high, low, close and volume. As with normal candlesticks, the open and close form the body of the candlestick, while the high and low form the upper and lower shadows. Volume determines the width of the candlestick.

Thanks for explaining the things , my problem is if i have 1 minute tick data for any stock i can consider first tick price as open last tick price as close max to high and lowest price to low , but no clue what should be done for volume should i sum all and average out or what ?