Hmm, I don't think that answers the question. See https://www.nyujlb.org/single-post/2017/11/27/high-frequency... (which is EU-specific). I think https://www.cnbc.com/2014/04/03/high-frequency-traders-cant-... is suggesting that this is similarly legal in the US.
Again, not an expert.