Stockauctiontime
简述
竞价性质的交易时间,与系统参数(证券代码,日期)相关
Stockauctiontime(Auctiontype:Integer;Timetype:Integer):STRING
| 名称 | 类型 | 说明 |
|---|
| Auctiontype | Integer | 整型,竞价性质,取值如下:
|
取值 |
竞价类别 | |
0 |
开盘集合竞价 | |
1 |
夜盘集合竞价 | |
2 |
夜盘连续竞价 | |
3 |
上午连续竞价 | |
4 |
下午连续竞价 | |
5 |
收盘集合竞价 |
|
| Timetype | Integer | 整型,时间性质,开始时间=0,截止时间=1 |
| 返回 | STRING | 字符串,指定竞价的交易开始时间 |
//计算CU2109在2020-10-20日的夜盘连续竞价的开始时间
setsysparam(pn_stock(),"CU2109");
setsysparam(pn_date(),20201020T);
return StockAuctionTime(2,0);
//返回:21:00:00,为CU2109在2020-10-20日的夜盘连续竞价的开始时间