def quotes_historical_yahoo(ticker, date1, date2, asobject=False, adjusted=True, cachename=None):
 fh = fetch_historical_yahoo(ticker, date1, date2, cachename)
 try:
  ret = parse_yahoo_historical(fh, asobject, adjusted)
 except IOError as exc:
  warnings.warn(((('urlopen() failure\n' + url) + '\n') + exc.strerror[1]))
  return None
 return ret

def quotes_historical_yahoo ( ticker , date1 , date2 , asobject = False , adjusted = True , cachename = None ) : fh = fetch_historical_yahoo ( ticker , date1 , date2 , cachename ) try : ret = parse_yahoo_historical ( fh , asobject , adjusted ) except IOError as exc : warnings . warn ( ( ( ( 'urlopen() failure\n' + url ) + '\n' ) + exc . strerror [ 1 ] ) ) return None return ret
get historical data for ticker between date1 and date2 .