StocksAmountSum
简述
指定一组股票区间成交金额(万)
StocksAmountSum(StockArr:Array;BegT:TDateTime;EndT:TDateTime;Stype:Int):Float
名称 | 类型 | 说明 |
---|
StockArr | Array | 一组股票 |
BegT | TDateTime | 开始日期 |
EndT | TDateTime | 截止日期 |
Stype | Int | 股票类型,具体取值如下:
股票类型 |
取值 |
A股 |
1 |
B股 |
2 |
深证B股 |
3 |
上证B股 |
4 |
全部 |
0 |
|
返回 | Float | 实数 |
//返回2010年年底沪深300成分股2011年1月份成交金额之和
BegT:=inttodate(20110101);
EndT:=inttodate(20110131);
Stks:=getbkbydate('SH000300',inttodate(20101231));
Return StocksAmountSum(stks,BegT,EndT,0);
//返回结果:157345179.68