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); }
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("¤cy=" + 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); }