I have a stock market simulator that uses an API to recieve stock quotes and I would like to optimize it.