Beispiel #1
0
        public Dictionary <string, PLDInfo> CarregarPLDInfo()
        {
            Dictionary <string, PLDInfo> ret = new Dictionary <string, PLDInfo>();

            TraderConfig traderConfig = Gradual.OMS.Library.GerenciadorConfig.ReceberConfig <TraderConfig>();

            if (traderConfig != null)
            {
                foreach (PLDInfo info in traderConfig.PLDList)
                {
                    logger.Debug("Loading PLDInfo for [" + info.AccountGradual + "]");
                    ret.Add(info.AccountGradual, info);
                }
            }

            return(ret);
        }
Beispiel #2
0
        public Dictionary <string, TraderInfo> CarregarTraderInfo()
        {
            Dictionary <string, TraderInfo> ret = new Dictionary <string, TraderInfo>();

            // Feio pra kct, mas sem especificacao decente, vai assim....

            TraderConfig traderConfig = Gradual.OMS.Library.GerenciadorConfig.ReceberConfig <TraderConfig>();

            if (traderConfig != null)
            {
                foreach (TraderInfo info in traderConfig.TraderList)
                {
                    logger.Debug("Loading TraderInfo for [" + info.CpfCnpj + "]");
                    ret.Add(info.CpfCnpj, info);
                }
            }

            //TraderInfo info = new TraderInfo();
            //info.CdCorretoraBmfDestino = 1182;
            //info.ContaCliente = "000009300";
            //info.CpfCnpj = "21269094840";
            //info.NomeCorretoraBmfDestino = "PLD - PACTUAL";
            //info.NomeEmitente = "ROBERTO SOARES MORENO";

            //ret.Add(info.CpfCnpj, info);


            //info = new TraderInfo();
            //info.CdCorretoraBmfDestino = 1183;
            //info.ContaCliente = "000003380";
            //info.CpfCnpj = "99999999999";
            //info.NomeCorretoraBmfDestino = "PLD - ASSET";
            //info.NomeEmitente = "BRUNO COUTINHO";

            //ret.Add(info.CpfCnpj, info);

            return(ret);
        }