def get_nav_history(code, start=None, end=None, retry_count=3, pause=0.001, timeout=10):
 start = (du.today_last_year() if (start is None) else start)
 end = (du.today() if (end is None) else end)
 ismonetary = False
 df_fund = get_fund_info(code)
 fund_type = df_fund.ix[0]['Type2Name']
 if ((fund_type.find(u'\u503a\u5238\u578b') != (-1)) or (fund_type.find(u'\u8d27\u5e01\u578b') != (-1))):
  ismonetary = True
 ct._write_head()
 nums = _get_nav_histroy_num(code, start, end, ismonetary)
 data = _parse_nav_history_data(code, start, end, nums, ismonetary, retry_count, pause, timeout)
 return data

def get_nav_history ( code , start = None , end = None , retry_count = 3 , pause = 0.001 , timeout = 10 ) : start = ( du . today_last_year ( ) if ( start is None ) else start ) end = ( du . today ( ) if ( end is None ) else end ) ismonetary = False df_fund = get_fund_info ( code ) fund_type = df_fund . ix [ 0 ] [ 'Type2Name' ] if ( ( fund_type . find ( u'\u503a\u5238\u578b' ) != ( - 1 ) ) or ( fund_type . find ( u'\u8d27\u5e01\u578b' ) != ( - 1 ) ) ) : ismonetary = True ct . _write_head ( ) nums = _get_nav_histroy_num ( code , start , end , ismonetary ) data = _parse_nav_history_data ( code , start , end , nums , ismonetary , retry_count , pause , timeout ) return data
parameters code:string 基金代码 e .