run a loop thread for stock