As suggested by @agarwalo, WebSocket based API will help in getting rid of updating stock prices using a cron job and will be more real-time.