Exemplo n.º 1
0
        /// <summary>
        /// 现货异步委托回报价格异常(废单)
        /// </summary>
        /// <param name="model"></param>
        public void ProcessStockOrderRpt(ResultDataEntity model)
        {
            string desc = CrashManager.GetInstance().GetResultDesc(model);

            LogHelper.WriteDebug("<---现货异步委托回报价格异常(废单)DoCallbackProcess.AcceptXHErrorOrderRpt" + desc);

            if (string.IsNullOrEmpty(model.Id))
            {
                model.Id = Guid.NewGuid().ToString();
            }

            if (CrashManager.GetInstance().InsertXHResultDealBackEntity(model))
            {
                ReckonCenter.Instace.AcceptXHErrorOrderRpt(model);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 港股撤单回报
        /// </summary>
        /// <param name="model"></param>
        public void CancelHKStockOrderRpt(CancelOrderEntity model)
        {
            string desc = CrashManager.GetInstance().GetCancelDesc(model);

            LogHelper.WriteDebug("<---港股撤单异步回报DoCallbackProcess.CancelHKStockOrderRpt" + desc);

            if (string.IsNullOrEmpty(model.Id))
            {
                model.Id = Guid.NewGuid().ToString();
            }

            if (CrashManager.GetInstance().InsertHkCancelDealBackEntity(model))
            {
                ReckonCenter.Instace.AcceptCancelHKOrderRpt(model);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 股指期货成交回报接收
        /// </summary>
        /// <param name="model"></param>
        public void ProcessStockIndexFuturesDealRpt(FutureDealBackEntity model)
        {
            string desc = CrashManager.GetInstance().GetGZQHDesc(model);

            LogHelper.WriteDebug("<---股指期货成交回报接收DoCallbackProcess.ProcessStockIndexFuturesDealRpt" + desc);

            if (string.IsNullOrEmpty(model.Id))
            {
                model.Id = Guid.NewGuid().ToString();
            }

            if (CrashManager.GetInstance().InsertGZQHDealBackEntity(model))
            {
                //即时清算
                ReckonCenter.Instace.AcceptGZQHDealOrder(model);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// 商品期货成交回报接收
        /// </summary>
        /// <param name="model"></param>
        public void ProcessMercantileDealRpt(CommoditiesDealBackEntity model)
        {
            string desc = CrashManager.GetInstance().GetQHDesc(model);

            LogHelper.WriteDebug("<---商品期货成交回报接收DoCallbackProcess.ProcessMercantileDealRpt" + desc);

            if (string.IsNullOrEmpty(model.Id))
            {
                model.Id = Guid.NewGuid().ToString();
            }

            if (CrashManager.GetInstance().InsertQHDealBackEntity(model))
            {
                //即时清算
                ReckonCenter.Instace.AcceptSPQHDealOrder(model);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 港股成交回报接收
        /// </summary>
        /// <param name="model"></param>
        public void ProcessHKStockDealRpt(HKDealBackEntity model)
        {
            string desc = CrashManager.GetInstance().GetHKDesc(model);

            LogHelper.WriteDebug("<---港股成交回报接收DoCallbackProcess.ProcessHKStockDealRpt" + desc);

            if (string.IsNullOrEmpty(model.ID))
            {
                model.ID = Guid.NewGuid().ToString();
            }

            if (CrashManager.GetInstance().InsertHKDealBackEntity(model))
            {
                //即时清算
                ReckonCenter.Instace.AcceptHKDealOrder(model);
            }
        }