A realtime stock market simulator