历史
一天的结束六个财务信息数据
句法
d =历史记录(c,s,f,fromdate,todate)
描述
d =历史记录(c,s,f,fromdate,todate)
返回安全列表的历史数据s
,对于领域F
,对于日期从日期
至迄今为止
。
例子
检索一天的结束六个财务信息过去5天的指定安全性数据。
c = tlkrs('us12345','userapid01','userapid10')ids = tkfieldtoid(c,c,{'bid','ask'sak'},'history');d =历史记录(c,{'1758999,149,134'},ids,floor(NOW)-5,floor(now);
d = xrf:[1x1 struct] iL:[1x1 struct] i:[1x1 struct] hl:[1x1 struct] hd:[1x1 struct] p:[1x1 struct] p:[1x1 struct]
D.I
包含仪器ID,d.hd
包含日期,并D.P
包含定价数据。
查看日期:
d.hd.d ans ='20110225''20110228''20110301'
查看定价字段ID:
d.p.k ans ='3,2''3,3'3,2'3,3'3,2'3,3'
查看定价数据:
d.p.v ans = '45 .32''45 .33''45 .26''45 .27''44 .94''44 .95'
转换字段标识值D.P.K
与他们相应的字段名称:
d.p.k = tkidtofield(c,d.p.k,'历史')