A:集合竞价的撮合数据有一条,会在集合竞价后几秒或十几秒,在连续竞价之前公布。
用户可以根据时间判断提取。
比如取股票的集合竞价数据,股票的集合竞价时间为09:15:00-09:25:00,集合竞价数据会在09:25:00之后 09:30:00之前发布,一般是在09:25:00之后的几秒。所以取数据的时候,可以用09:25:00和09:29:50这两个时间作为判断依据。取数范例:
//取平安银行2017年3月1日到2017年4月5日时间段的集合竞价
BegT:=20170301T;
EndT:=20170405T;
r:=select datetimetostr(['date']) as 'date',
['price'] as 'close',
['vol'],
['amount']
from tradetable
datekey begt to endt+0.99
of 'SZ000001'
where timetostr(timeof(['date']))>="09:25:00"
and timetostr(timeof(['date']))<"09:29:50"
end;
return r;