Пример #1
0
 /// <summary>
 /// 导入单个订单
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public bool Import(RI_Order data)
 {
     try
     {
         OrderID     = data.OrderID;
         OrderType   = data.OrderType;
         OrderStatus = data.OrderStatus;
         Side        = data.Side;
         StockCode   = data.StockCode;
         StockMarket = data.StockMarket;
         OrderVolume = data.OrderVolume;
         OrderPrice  = data.OrderPrice;
         TradePrice  = data.TradePrice;
         OrderDate   = data.OrderDate;
         Curr        = data.Curr;
         UpdatedDate = data.UpdatedDate;
         ExpiredDate = data.ExpiredDate;
         return(true);
     }
     catch
     {
         return(false);
     }
 }
Пример #2
0
 /// <summary>
 /// 导入单个订单
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public bool Import(RI_Order data)
 {
     try
     {
         OrderID = data.OrderID;
         OrderType = data.OrderType;
         OrderStatus = data.OrderStatus;
         Side = data.Side;
         StockCode = data.StockCode;
         StockMarket = data.StockMarket;
         OrderVolume = data.OrderVolume;
         OrderPrice = data.OrderPrice;
         TradePrice = data.TradePrice;
         OrderDate = data.OrderDate;
         Curr = data.Curr;
         UpdatedDate = data.UpdatedDate;
         ExpiredDate = data.ExpiredDate;
         return true;
     }
     catch
     {
         return false;
     }
 }