Here is some data to clarify the desired input/output.
dt = structure(list(ticker = c("FTNT", "FTNT", "FTNT", "FTNT",