I need to wait until the response arrives and is assigned to the candlesticks variable. This is because it sometimes will not arrive and cause timeout errors. Haven
candlesticks