def _quotes_historical_yahoo(ticker, date1, date2, asobject=False, adjusted=True, cachename=None, ochl=True):
 fh = fetch_historical_yahoo(ticker, date1, date2, cachename)
 try:
  ret = _parse_yahoo_historical(fh, asobject=asobject, adjusted=adjusted, ochl=ochl)
  if (len(ret) == 0):
   return None
 except IOError as exc:
  warnings.warn((u'fh failure\n%s' % exc.strerror[1]))
  return None
 return ret

def _quotes_historical_yahoo ( ticker , date1 , date2 , asobject = False , adjusted = True , cachename = None , ochl = True ) : fh = fetch_historical_yahoo ( ticker , date1 , date2 , cachename ) try : ret = _parse_yahoo_historical ( fh , asobject = asobject , adjusted = adjusted , ochl = ochl ) if ( len ( ret ) == 0 ) : return None except IOError as exc : warnings . warn ( ( u'fh failure\n%s' % exc . strerror [ 1 ] ) ) return None return ret
get historical data for ticker between date1 and date2 .