Esempio n. 1
0
        public Dictionary <string, TransformInfo> GetInfo()
        {
            Dictionary <string, TransformInfo> temp = new Dictionary <string, TransformInfo>();
            var coins = AccseptCoins.GetCoins();

            foreach (var item in coins)
            {
                try
                {
                    string      site = "	https://api.exmo.com/v1/trades/?pair="+ item.Key + "_" + item.Value;
                    WebResponse resp = GetRequst.Requst(site);


                    using (StreamReader stream = new StreamReader(
                               resp.GetResponseStream(), Encoding.UTF8))
                    {
                        string  str = stream.ReadToEnd();
                        dynamic res = JsonConvert.DeserializeObject(str);
                    }
                }
                catch (Exception e)
                {
                }
            }
            return(temp);
        }
Esempio n. 2
0
        public Dictionary <string, string> GetDepositAddresses()
        {
            var temp     = new Dictionary <string, string>();
            var lt       = AccseptCoins.GetCoins();
            var postData = new List <string>();

            foreach (var item in lt)
            {
                postData.Add("&currency=" + item);
            }
            foreach (var item in postData)
            {
                var     resp    = BittrexPostRequst.PostString(ApiCallGetAdrress, item);
                dynamic jObject = JObject.Parse(resp);
                temp.Add(jObject.Currency, jObject.Address);
            }
            return(temp);
        }