FundsNetAssetPerUnit
简述
返回基金板块最新单位净值.
FundsNetAssetPerUnit(FundArr:Array;EndT:DateTime;FundType:Int):Real
名称 | 类型 | 说明 |
---|
FundArr | Array | 一维字符串数组,基金列表 |
EndT | DateTime | 日期,截止日期 |
Type | | 整数,基金类型
显示名 |
取值 |
全部 |
-1 |
混合型 |
0 |
股票型 |
1 |
保本型 |
2 |
货币型 |
3 |
债券型 |
4 |
商品型 |
5 |
股票+混合 |
6 |
混合+债券 |
7 |
债券+保本 |
8 |
非货币型 |
9 |
|
返回 | Real | 实数 |
//深证基金、上证基金、开放式基金2018年3月1日所有类型基金的单位净值
FundArr := getbk("深证基金;上证基金;开放式基金");
return FundsNetAssetPerUnit(FundArr,20180301T,-1);
//结果:1.729