示例#1
0
        /// <summary>
        /// Get a trade given the order
        /// </summary>
        /// <param name="o"></param>
        /// <returns></returns>
        public KaiTrade.Interfaces.ITrade GetTrade(KaiTrade.Interfaces.IOrder o)
        {
            K2DS.K2TradeDS tradeDS = new K2DS.K2TradeDS();
            IEnumerable<K2DataObjects.Trade> trades = tradeDS.GetTrade((o as K2DataObjects.Order));

            foreach(K2DataObjects.Trade t in trades)
            {
                return t;
            }
            return null;
        }
示例#2
0
 public void InsertFill(KaiTrade.Interfaces.IFill f)
 {
     try
     {
         K2DS.K2TradeDS tradeDS = new K2DS.K2TradeDS();
         tradeDS.InsertFill(f as K2DataObjects.Fill,true);
     }
     catch (Exception myE)
     {
     }
 }