#%%
#估算利润
import akshare as ak
fund_em_value_estimation_df = ak.fund_em_value_estimation()
my_list={'009052':50000,'160517':10000,'501090':10000,'501006':10000}
my_profit=0.0
for i in my_list.items():
r=fund_em_value_estimation_df[fund_em_value_estimation_df
['基金代码']==i[0]].iloc[0,4]
print(float(r[:-1])*i[1]/100)
my_profit=float(r[:-1])*i[1]/100+my_profit
my_profit
#%%
#实际利润
import akshare as ak
fund_em_value_estimation_df = ak.fund_em_value_estimation()
my_list={'009052':50000,'160517':10000,'501090':10000,'501006':10000}
my_profit=0.0
for i in my_list.items():
r=fund_em_value_estimation_df[fund_em_value_estimation_df
['基金代码']==i[0]].iloc[0,6]
print(float(r[:-1])*i[1]/100)
my_profit=float(r[:-1])*i[1]/100+my_profit
my_profit