CoinMarketCapApi 1.0.0

There is a newer version of this package available.
See the version list below for details.
Install-Package CoinMarketCapApi -Version 1.0.0
dotnet add package CoinMarketCapApi --version 1.0.0
<PackageReference Include="CoinMarketCapApi" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoinMarketCapApi --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CoinMarketCapApi, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install CoinMarketCapApi as a Cake Addin
#addin nuget:?package=CoinMarketCapApi&version=1.0.0

// Install CoinMarketCapApi as a Cake Tool
#tool nuget:?package=CoinMarketCapApi&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CoinMarketCap API Wrapper for .Net

A .Net wrapper for the CoinMarketCap API as described on CoinMarketCap Public API and Professional API, including all features the API provides using clear and readable objects.

If you think something is broken, something is missing or have any questions, please open an Issue


Donations are greatly appreciated and a motivation to keep improving.

BTC: 1CCiBxQPbng46X7yiRjMPpiMwBn6jeT8v1 ETH: 0x068cbd8cdeb6712185f17d88d2cba06f40da2e4d NANO: xrb_1xh45zbu1gkr7syu6nxdbds4ce3jbqkuh6frp46nq8icmti3r49yr4jbgqgp


Nuget version Nuget downloads Available on Nuget.

pm> Install-Package CoinMarketCapApi

Getting started

After installing it's time to actually use it. To get started we have to add the CoinMarketCap namespace: using CoinMarketCap;.

CoinMarketCap provides two clients to interact with the API. The PublicClient provides all rest Public API calls. The ProClient provides functions to interact with the Professional API calls. Both clients are disposable and as such can be used in a usingstatement.

Most API methods are available in two flavors, sync and async:

public void NonAsyncMethod()
    using(var client = new PublicClient())
        var result = client.Global();

public async Task AsyncMethod()
    using(var client = new PublicClient())
        var result2 = await client.GlobalAsync();


Examples can be found in the Examples folder.

Response handling

All API requests will respond with an Metadata(for public) or Status(for pro) object. This object contains whether the call was successful, the data returned from the call and an error if the call wasn't successful. As such, one should always check the Success flag when processing a response. For example:

using(var client = new PublicClient())
	var result = client.Tickers();
	if (result.Success)
		Console.WriteLine($"Server time: {result.Data}");
		Console.WriteLine($"Error: {result.Metadata.Error}");

Release notes

  • Version 1.0.1 - 26 sep 2018

    • Fixed some variables types according to returned value is null or not
  • Version 1.0.0 - 24 sep 2018

    • First release of Library

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 142 3/31/2021
1.0.2 359 1/28/2020
1.0.1 468 9/26/2018
1.0.0 430 9/24/2018

This is the first release of CoinMarketCap Public and Pro API for .Net