public Gate() { StockName = "Gate"; Info = new GateInfo(); Orders = new GateOrders(); Ballans = new GateWallet(); Traid = new GateTraid(); }
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); }