예제 #1
0
 public void AgregarNoticia(string newsId, string titulo, DateTime fecha, string remitente, string destinatarios, string mensaje, byte idMercado, Guid guid, int idUsuarioProceso)
 {
     try
     {
         FixDAL.AgregarNoticia(newsId, titulo, fecha, remitente, destinatarios, mensaje, idMercado);
     }
     catch (Exception e)
     {
         LoggingHelper.Instance.AgregarLog(new LogProcesoEntity(guid, OrdenesApplication.Instance.SessionUsuarioProceso.IdUsuario)
         {
             Fecha = DateTime.Now, Descripcion = "InformarNoticia. Msg: " + e.Message, Exception = e, IdLogCodigoAccion = (byte)LogCodigoAccion.RecibirRespuestaMercado, IdUsuario = idUsuarioProceso
         });
         throw e;
     }
 }
예제 #2
0
 public void LimpiarProductosSecurityList(byte idMercado, string segmentMarketId, Guid guid, int idUsuarioProceso)
 {
     try
     {
         FixDAL.LimpiarProductosSecurityList(idMercado, segmentMarketId);
     }
     catch (Exception e)
     {
         LoggingHelper.Instance.AgregarLog(new LogProcesoEntity(guid, OrdenesApplication.Instance.SessionUsuarioProceso.IdUsuario)
         {
             Fecha = DateTime.Now, Descripcion = "InformarSecurityList. Msg: " + e.Message, Exception = e, IdLogCodigoAccion = (byte)LogCodigoAccion.RecibirRespuestaMercado, IdUsuario = idUsuarioProceso
         });
         throw e;
     }
 }
예제 #3
0
 public void AgregarProductoSecurityList(DTOProducto producto, byte idMercado, string segmentMarketId, Guid guid, int idUsuarioProceso, decimal?cantidadMinima)
 {
     try
     {
         byte IdPlazo = Byte.Parse(producto.Plazo);//CachingbManager.Instance.GetAllPlazos().Find(x => x.Descripcion == producto.Plazo).IdPlazo;
         FixDAL.AgregarProductoSecurityList(producto, idMercado, segmentMarketId, cantidadMinima, IdPlazo);
     }
     catch (Exception e)
     {
         LoggingHelper.Instance.AgregarLog(new LogProcesoEntity(guid, OrdenesApplication.Instance.SessionUsuarioProceso.IdUsuario)
         {
             Fecha = DateTime.Now, Descripcion = "InformarSecurityList. Msg: " + e.Message, Exception = e, IdLogCodigoAccion = (byte)LogCodigoAccion.RecibirRespuestaMercado, IdUsuario = idUsuarioProceso
         });
         throw e;
     }
 }
예제 #4
0
        //public void AgregarPrecio(byte idMercado, byte idMoneda, int idProducto, byte tipoPlazoLiquidacionOrden, TradeInfo infoTrade, FixEntryType settlementPrice, FixEntryType highValue, FixEntryType lowValue, FixEntryType tradeVolume, FixEntryType ClosingPrice)
        //{
        //    FixDAL.AgregarPrecio(idMercado, idMoneda, idProducto, tipoPlazoLiquidacionOrden, infoTrade, settlementPrice, highValue, lowValue, tradeVolume, ClosingPrice);
        //}

        public void AgregarPrecio(byte idMercado, byte idMoneda, int idProducto, byte tipoPlazoLiquidacionOrden, TradeInfo trade, FixEntryType closePrice, FixEntryType openPrice)
        {
            FixEntryType highValue       = null;
            FixEntryType lowValue        = null;
            FixEntryType tradeVolume     = null;
            FixEntryType settlementPrice = null;
            FixEntryType equivalentRate  = null;

            if (trade.InfoTrade != null && trade.InfoTrade.Count > 0)
            {
                highValue       = trade.InfoTrade.Find(it => it.TipoOferta == FixTipoEntradaEnum.TradingSessionHighPrice);
                lowValue        = trade.InfoTrade.Find(it => it.TipoOferta == FixTipoEntradaEnum.TradingSessionLowPrice);
                tradeVolume     = trade.InfoTrade.Find(it => it.TipoOferta == FixTipoEntradaEnum.TradeVolume);
                settlementPrice = trade.InfoTrade.Find(it => it.TipoOferta == FixTipoEntradaEnum.SettlementPrice);
                equivalentRate  = trade.InfoTrade.Find(it => it.TipoOferta == FixTipoEntradaEnum.MarginRate);
            }

            FixDAL.AgregarPrecio(idMercado, idMoneda, idProducto, tipoPlazoLiquidacionOrden, trade, settlementPrice, highValue, lowValue, tradeVolume, closePrice, openPrice, equivalentRate);
        }
예제 #5
0
 public void BorrarOfertas(byte idMercado, int idProducto, byte idPlazo)
 {
     FixDAL.BorrarOfertas(idMercado, idProducto, idPlazo);
 }
예제 #6
0
 public void BorrarOferta(OfertaEntity oferta, bool todas)
 {
     FixDAL.BorrarOferta(oferta, todas);
 }
예제 #7
0
 //FixTipoEntradaEnum tipoOferta no se usa, pero es necesario para implementar la interfaz, porque se usa en otros lados
 public void AgregarOferta(OfertaEntity oferta, FixTipoEntradaEnum tipoOferta)
 {
     FixDAL.AgregarOferta(oferta);
 }
예제 #8
0
 public void PersistirProductoPorMercado(int IdMercado, int IdProducto, FixEntryType openPrice, FixEntryType closePrice, FixEntryType referencePrice)
 {
     FixDAL.PersistirProductoPorMercado(IdMercado, IdProducto, openPrice, closePrice, referencePrice);
 }
예제 #9
0
 public void PersistirOferta(byte IdMercado, byte IdMoneda, int IdProducto, byte tipoPlazoLiquidacionOrden, FixOfertaEntity oferta)
 {
     FixDAL.PersistirOferta(IdMercado, IdMoneda, IdProducto, tipoPlazoLiquidacionOrden, oferta);
 }