We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RestSharp.Portable is a portable library with classes similar to RestSharp.
[BSD 2-Clause License](BSD 2-Clause License)
The following is an example to get the ticker from the bitstamp.net website.
public class TickerResult { public decimal Last { get; set; } public decimal High { get; set; } public decimal Low { get; set; } public decimal Volume { get; set; } public decimal Bid { get; set; } public decimal Ask { get; set; } }
We use the class with:
using (var client = new RestClient(new Uri("https://www.bitstamp.net/api/"))) { var request = new RestRequest("ticker", HttpMethod.Get); var result = await client.Execute<TickerResult>(request); }