Skip to content

CoinMarketCap API v2 client written in .Net Standart 2.0

Notifications You must be signed in to change notification settings

tosunthex/CoinMarketCap-Api

Repository files navigation

Please DOWNLOAD the LATEST CoinMarketCap Pro Api

CoinMarketCap Api v2 Client Build status Codacy Badge NuGetNuGet

CoinMarketCap API v2 client written in .Net Standart 2.0

Installation

This Coinmarketcap v2 api wrapper library is available on NuGet

Package manager

Install-Package CoinMarketCapApiV2Client

.NET CLI

dotnet add package CoinMarketCapApiV2Client

Paket CLI

paket add CoinMarketCapApiV2Client

Basic usage

Default values
StartId = 1; Limit = 100; Sort = Rank; Currency = Usd

Get all listed cryptocurrencies:

var client = new CoinMarketCapClient();
var tickers = await client.Ticker.GetTickers();

Get tickers by Id 10-30 with quotes in EUR:

var client = new CoinMarketCapClient();
var tickersResponse = await client.GetTickers(10, 20, Sort.Id, Currency.Eur);

Get tickers by Rank 1-100 with quotes in EUR:

var client = new CoinMarketCapClient();
var tickersResponse = await client.GetTickers(1, Limit.Max, Sort.Rank, Currency.Eur);

Get Ripple (XRP) ticker with quote in USD:

var client = new CoinMarketCapClient();
var chainlinkTicker = await client.GetTickerAsync(1975, Currency.USD);

Target Frameworks and Dependencies

.NETFramework 4.5

Microsoft.AspNet.WebApi.SelfHost (>= 5.2.2)
Newtonsoft.Json (>= 11.0.2)

.NETFramework 4.6.1

Microsoft.AspNet.WebApi.SelfHost (>= 5.2.2)
Newtonsoft.Json (>= 11.0.2)

.NETStandard 1.3

NETStandard.Library (>= 1.6.1)
Newtonsoft.Json (>= 11.0.2)

.NETStandard 1.5

NETStandard.Library (>= 1.6.1)
Newtonsoft.Json (>= 11.0.2)

.NETStandard 2.0

Newtonsoft.Json (>= 11.0.2)