code: def fetch_appl():
      
      yql = YQL('AAPL', '2014-01-01', '2014-01-10')
  
      for item in yql:
          print item.get('date'), item.get('price')
  
      yql.select('AAPL', '2014-01-01', '2014-01-10')
  
      for item in yql:
          print item.get('date'), item.get('price')
docs: Returns stock prices for Apple company.