Added API based calls to fetch historical data

This version uses yahoo finance to fetch historical data.