新股业务成员函数
ipo_buy - 新股申购
函数原型:
    Order ipo_buy(const char *symbol, int volume, double price, const char *account = NULL);
参数:
| 参数名 | 类型 | 说明 | 
|---|---|---|
| symbol | const char * | 标的代码,只能单个标的 | 
| volume | int | 委托数量 | 
| price | double | 申购价 | 
| account | const char * | 实盘账号id,关联多实盘账号时填写,可以从 get_accounts获取,也可以从终端实盘账号配置里拷贝。如果策略只关联一个账号,可以设置为NULL | 
| 返回值 | Order | 一个Order结构, 如果函数调用失败, Order.status 值为 OrderStatus_Rejected, Order.ord_rej_reason_detail 为错误原因描述, 其它情况表示函数调用成功,Order.cl_ord_id 为本次委托的标识,可用于追溯订单状态或撤单 | 
示例:
//申购1000股的SHSE.688001
Order o = ipo_buy("SHSE.688001", 1000, 42.0);
ipo_get_quota - 查询客户新股申购额度
函数原型:
    int ipo_get_quota(double "a, const char *account = NULL);
参数:
| 参数名 | 类型 | 说明 | 
|---|---|---|
| quota | double | 出参,返回该资金账号的申购额度 | 
| account | const char * | 实盘账号id,关联多实盘账号时填写,可以从 get_accounts获取,也可以从终端实盘账号配置里拷贝。如果策略只关联一个账号,可以设置为NULL | 
| 返回值 | int | 成功返回0,不成功返回非0错误码 | 
示例:
double quota;
int ret = ipo_get_quota(quota);
ipo_get_instruments - 查询当日新股清单
函数原型:
DataArray<IPOInstruments>* ipo_get_instruments(const char *account = NULL);
参数:
| 参数名 | 类型 | 说明 | 
|---|---|---|
| account | const char * | 实盘账号id,关联多实盘账号时填写,可以从 get_accounts获取,也可以从终端实盘账号配置里拷贝。如果策略只关联一个账号,可以设置为NULL | 
| 返回值 | DataArray<IPOInstruments>* | 
一个IPOInstruments结构数组 | 
ipo_get_match_number - 配号查询
函数原型:
DataArray<IPOMatchNumber>* ipo_get_match_number(const char *account = NULL);
参数:
| 参数名 | 类型 | 说明 | 
|---|---|---|
| account | const char * | 实盘账号id,关联多实盘账号时填写,可以从 get_accounts获取,也可以从终端实盘账号配置里拷贝。如果策略只关联一个账号,可以设置为NULL | 
| 返回值 | DataArray<IPOMatchNumber>* | 
一个IPOMatchNumber结构数组 | 
ipo_get_lot_info - 中签查询
函数原型:
DataArray<IPOLotInfo>* ipo_get_lot_info(const char *account = NULL);
参数:
| 参数名 | 类型 | 说明 | 
|---|---|---|
| account | const char * | 实盘账号id,关联多实盘账号时填写,可以从 get_accounts获取,也可以从终端实盘账号配置里拷贝。如果策略只关联一个账号,可以设置为NULL | 
| 返回值 | DataArray<IPOLotInfo>* | 
一个IPOLotInfo结构数组 |