A C# wrapper around the https://coinmarketcap.com API.
- .NET Standard 2.0
- .NET 4.5
// Get instance
var client = new CoinMarketCapClient();
// Get ticker list
var tickerList = await client.GetTickerListAsync();
// Get 5 ticker items converted in Euros.
var tickerList5OnEuros = await client.GetTickerListAsync(5, CoinMarketCap.Enums.ConvertEnum.EUR);
// Read the euro value.
var value = tickerList5OnEuros.First().PriceOther[CoinMarketCap.Enums.ConvertEnum.EUR];
// Ask for bitcoin ticker.
var ticker = await client.GetTickerAsync("bitcoin");
var client = CoinMarketCapClient.GetInstance();
// Get ticker list
var tickerList = await client.GetTickerListAsync();
// Get 5 ticker items converted in Euros.
var tickerList5OnEuros = await client.GetTickerListAsync(5, CoinMarketCap.Enums.ConvertEnum.EUR);
// Read the euro value.
var value = tickerList5OnEuros.First().PriceOther[CoinMarketCap.Enums.ConvertEnum.EUR];
// Ask for bitcoin ticker.
var ticker = await client.GetTickerAsync("bitcoin");