It takes adjusting of the settings to get that right timing, and each shop is different because all of them have different traffic (magic being the most popular obviously). The more popular = items clear faster = more restocks.
You have to master autobuying nowadays to be on top.