code to fetch and perform rudimentary analysis on stock market data