CoinGeckoAsyncApi 1.8.0

dotnet add package CoinGeckoAsyncApi --version 1.8.0                
NuGet\Install-Package CoinGeckoAsyncApi -Version 1.8.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoinGeckoAsyncApi" Version="1.8.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoinGeckoAsyncApi --version 1.8.0                
#r "nuget: CoinGeckoAsyncApi, 1.8.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CoinGeckoAsyncApi as a Cake Addin
#addin nuget:?package=CoinGeckoAsyncApi&version=1.8.0

// Install CoinGeckoAsyncApi as a Cake Tool
#tool nuget:?package=CoinGeckoAsyncApi&version=1.8.0                

CoinGecko

Build status Codacy BadgeNuget version Nuget downloads

CoinGecko .Net Standard api wrapper

A .Net wrapper for the CoinGecko Api as described on API documentation , 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

Installation

Available on Nuget.

pm> Install-Package CoinGeckoAsyncApi

Quick start

...
using Newtonsoft.Json;
using CoinGecko.Clients;

HttpClient httpClient = new HttpClient();
JsonSerializerSettings serializerSettings = new JsonSerializerSettings();

PingClient pingClient = new PingClient(httpClient, serializerSettings);
SimpleClient simpleClient = new SimpleClient(httpClient, serializerSettings);

// Check CoinGecko API status
if ((await pingClient.GetPingAsync()).GeckoSays != string.Empty)
{
    // Getting current price of tether in usd
    string ids = "tether";
    string vsCurrencies = "usd";
    Console.WriteLine((await simpleClient.GetSimplePrice(new []{ids},new []{vsCurrencies}))["tether"]["usd"]);
}

...

Examples

Examples can be found in the Test project.

Available endpoint

Refer to CoinGecko official API

Ping Endpoints Status Testing
/ping [+] [+]
/simple/price [+] [+]
/simple/token_price/{id} [+] [+]
/simple/supported_vs_currencies [+] [+]
Coins Endpoints Status Testing
/coins/list [+] [+]
/coins/market [+] [+]
/coins/{id} [+] [+]
/coins/{id}/tickers [+] [+]
/coins/{id}/history [+] [+]
/coins/{id}/market_chart [+] [+]
/coins/{id}/market_chart/range [-] [-]
/coins/{id}/status_updates [-] [-]
/coins/{id}/ohlc [+] [+]
Contact Endpoints Status Testing
/coins/{id}/contract/{contract_address} [+] [+]
/coins/{id}/contract/{contract_address}/market_chart/ [+] [+]
/coins/{id}/contract/{contract_address}/market_chart/range [+] [+]
Exchanges Endpoints Status Testing
/exchanges [+] [+]
/exchanges/list [+] [+]
/exchanges/{id} [+] [+]
/exchanges/{id}/tickers [+] [+]
/exchanges/{id}/status_updates [-] [-]
/exchanges/{id}/volume_chart [+] [+]
Finance Endpoints Status Testing
/finance_platforms [+] [+]
/finance_products [+] [+]
Derivatives Endpoints Status Testing
/derivatives [+] [+]
/derivatives/exchanges [+] [+]
/derivatives/exchanges/{id} [+] [+]
/derivatives/exchanges/list [+] [+]
Status Updates Endpoints Status Testing
/status_updates [+] [+]
Events Endpoints Status Testing
/events [+] [+]
/events/countries [+] [+]
/events/types [+] [+]
Exchange Rates Endpoints Status Testing
/exchange_rates [+] [+]
Trending Endpoints Status Testing
/search/trending [+] [+]
Global Endpoints Status Testing
/global [+] [+]
/global/decentralized_finance_defi [+] [+]

Donations

Donations are greatly appreciated and a motivation to keep improving.

BTC: 1Czb4Z4Xj2rmvpN8YuNMc6dr7XNFuYQF5J

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on CoinGeckoAsyncApi:

Package Downloads
IkosBots

Package Description

UserLibrary

Package Description

Contoso.24.07.22.001.Test

Package Description

AElf.GraphQL

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.8.0 381 9/5/2024
1.7.0 58,032 6/9/2022
1.6.4 1,199 6/1/2022
1.6.3 1,252 5/25/2022
1.6.2 1,190 5/24/2022
1.6.1 1,303 5/17/2022
1.6.0 24,069 4/14/2022
1.5.5 3,891 1/18/2022
1.5.4 1,650 12/21/2021
1.5.3 1,153 12/17/2021
1.5.2 1,249 12/11/2021
1.5.1 1,206 12/9/2021
1.5.0 4,965 10/21/2021
1.4.5 2,833 8/29/2021
1.4.4 12,520 7/12/2021
1.4.3 4,961 5/6/2021
1.4.2 2,260 4/17/2021
1.4.1 3,067 3/14/2021
1.3.5 4,317 11/13/2020
1.3.4 3,045 9/18/2020
1.3.3 1,275 9/18/2020
1.3.2 2,128 8/2/2020
1.3.1 1,497 7/27/2020
1.3.0 2,426 7/8/2020
1.2.6 5,594 6/26/2019
1.2.5 1,412 6/24/2019
1.2.4 1,410 5/7/2019
1.2.3 1,513 4/23/2019
1.2.2 1,436 4/19/2019
1.2.1 1,418 4/4/2019
1.2.0 1,430 4/4/2019
1.1.1 1,430 3/1/2019
1.1.0 1,427 3/1/2019
1.0.4 1,426 2/26/2019
1.0.3 1,454 2/19/2019
1.0.2 1,442 2/16/2019
1.0.1 1,487 12/20/2018
1.0.0 1,555 12/18/2018

Coin Gecko Api wrapper written in .net standard 2.0 for more information please check the official documentation from https://www.coingecko.com/api/docs/v3