def get_nav_grading(fund_type='all', sub_type='all'):
 ct._write_head()
 nums = _get_fund_num((ct.SINA_NAV_COUNT_URL % (ct.P_TYPE['http'], ct.DOMAINS['vsf'], ct.NAV_GRADING_KEY, ct.NAV_GRADING_API, ct.NAV_GRADING_T2[fund_type], ct.NAV_GRADING_T3[sub_type])))
 fund_df = _parse_fund_data((ct.SINA_NAV_DATA_URL % (ct.P_TYPE['http'], ct.DOMAINS['vsf'], ct.NAV_GRADING_KEY, ct.NAV_GRADING_API, nums, ct.NAV_GRADING_T2[fund_type], ct.NAV_GRADING_T3[sub_type])), 'grading')
 return fund_df

def get_nav_grading ( fund_type = 'all' , sub_type = 'all' ) : ct . _write_head ( ) nums = _get_fund_num ( ( ct . SINA_NAV_COUNT_URL % ( ct . P_TYPE [ 'http' ] , ct . DOMAINS [ 'vsf' ] , ct . NAV_GRADING_KEY , ct . NAV_GRADING_API , ct . NAV_GRADING_T2 [ fund_type ] , ct . NAV_GRADING_T3 [ sub_type ] ) ) ) fund_df = _parse_fund_data ( ( ct . SINA_NAV_DATA_URL % ( ct . P_TYPE [ 'http' ] , ct . DOMAINS [ 'vsf' ] , ct . NAV_GRADING_KEY , ct . NAV_GRADING_API , nums , ct . NAV_GRADING_T2 [ fund_type ] , ct . NAV_GRADING_T3 [ sub_type ] ) ) , 'grading' ) return fund_df
parameters type:string 1 .