I have a python function which receives and store live tick data from a server(By API requestes). And another function which fetch the data to candle bars of 1minute and appends