/// <summary> /// 港股下单报盘 /// </summary> /// <param name="model">港股下单实体</param> /// <returns></returns> public ResultDataEntity DoHKEntrustOrder(HKOrderEntity model) { //下单通道 LogHelper.WriteDebug("[调用港股下单通道服务]"); if (model == null) { return(null); } if (string.IsNullOrEmpty(model.SholderCode)) { return(null); } //撮合中心委托单 HKEntrustOrderInfo data = new HKEntrustOrderInfo(); data.BranchID = model.ChannelNo; data.OrderType = (int)model.HKPriceType; data.HKSecuritiesCode = model.Code; data.OrderPrice = model.OrderPrice; data.ReceiveTime = System.DateTime.Now; data.OrderVolume = model.OrderVolume; data.OldVolume = model.OrderVolume; data.TradeType = (int)model.TransactionDirection; data.SholderCode = model.SholderCode; return(MatchCenterManager.Instance.DoHKStockOrder(data)); }
public static string DescInfo(this HKOrderEntity entity) { string format = "HKOrderEntity[StockCode={0},TransactionDirection={1},OrderPrice={2},OrderVolume={3},PriceType={4}]"; string desc = String.Format(format, entity.Code, entity.TransactionDirection, entity.OrderPrice, entity.OrderVolume, entity.HKPriceType); return(desc); }