Walleye Capital interview question

They asked me about API calls and need to make an algorithm's runtime low.