Example #1
0
 public Gate()
 {
     StockName = "Gate";
     Info      = new GateInfo();
     Orders    = new GateOrders();
     Ballans   = new GateWallet();
     Traid     = new GateTraid();
 }
Example #2
0
        private void UpdateCoinsUSDAlg()
        {
            var temp = new GateInfo().GetPairs();

            foreach (var item in temp)
            {
                if (!MainCoins.Contains(item.Split('_')[0]))
                {
                    AllCoins.Add(item.Split('_')[0]);
                }
            }
            AllCoins = AllCoins.Distinct().ToList();
            var Cover = new List <OrdersCoverOneStock>()
            {
                new OrdersCoverOneStock(new LiveCoin(), AllCoins, "USD", "BTC"),
                //new OrdersCoverOneStock(new Cryptopia(),AllCoins,"BTC","USDT"),
                //new OrdersCoverOneStock(new Bittrex(),AllCoins,"USDT","BTC"),
                //new OrdersCoverOneStock(new Yobit(),AllCoins,"USD","BTC"),
                //new OrdersCoverOneStock(new Exmo(),AllCoins,"USDT","BTC"),
                //new OrdersCoverOneStock(new Gate(),AllCoins,"USDT","BTC")
            };

            UpdateCoins(Cover);
        }