Added function to get 30 days historic data