Method: Tushare::Datayes::Fund#fund_nav

Defined in:
lib/tushare/datayes/fund.rb

#fund_nav(data_date: '', sec_id: '', ticker: '', begin_date: '', end_date: '', field: '') ⇒ Object

获取某只基金的历史净值数据(货币型、短期理财债券型除外), 包括了单位份额净值、累计净值与复权净值。收录了2005年以来的历史数据,数据更新频率为日。不输入日期则默认获取近一年以来的历史数据。



18
19
20
21
22
23
# File 'lib/tushare/datayes/fund.rb', line 18

def fund_nav(data_date: '', sec_id: '', ticker: '', begin_date: '',
             end_date: '', field: '')
  api_path = format(FUNDNAV, data_date, sec_id, ticker, begin_date,
                    end_date, field)
  fetch_data api_path
end