a lightweight API and algorithm for the Marketwatch Virtual Stock Exchange