Without knowing anything else, it sounds like your issue is storage speed. I wrote a crypto trading bot a couple of years ago that stored an enormous amount of data from over a dozen exchanges (28,000 different currency pairs) and when the market made the occasional large move, with volume...