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?

2 replies