public static void Main()
Console.WriteLine(GetPrice());
public static string GetPrice()
HttpWebRequest webReq = (HttpWebRequest)HttpWebRequest.Create("https://api.cryptonator.com/api/ticker/etc-usd");
webReq.CookieContainer = new CookieContainer();
using (WebResponse response = webReq.GetResponse())
using (Stream stream = response.GetResponseStream())
StreamReader reader = new StreamReader(stream);
return reader.ReadToEnd();