CoinGeckoAsyncApi 1.8.0
dotnet add package CoinGeckoAsyncApi --version 1.8.0
NuGet\Install-Package CoinGeckoAsyncApi -Version 1.8.0
<PackageReference Include="CoinGeckoAsyncApi" Version="1.8.0" />
paket add CoinGeckoAsyncApi --version 1.8.0
#r "nuget: CoinGeckoAsyncApi, 1.8.0"
// 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
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 | Versions 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. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.2)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on CoinGeckoAsyncApi:
Package | Downloads |
---|---|
IkosBots
Package Description |
|
UserLibrary
Package Description |
|
AElf.GraphQL
Package Description |
|
Contoso.24.07.22.001.Test
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.8.0 | 1,089 | 9/5/2024 |
1.7.0 | 62,239 | 6/9/2022 |
1.6.4 | 1,205 | 6/1/2022 |
1.6.3 | 1,259 | 5/25/2022 |
1.6.2 | 1,196 | 5/24/2022 |
1.6.1 | 1,311 | 5/17/2022 |
1.6.0 | 28,590 | 4/14/2022 |
1.5.5 | 3,903 | 1/18/2022 |
1.5.4 | 1,656 | 12/21/2021 |
1.5.3 | 1,159 | 12/17/2021 |
1.5.2 | 1,254 | 12/11/2021 |
1.5.1 | 1,211 | 12/9/2021 |
1.5.0 | 4,982 | 10/21/2021 |
1.4.5 | 2,842 | 8/29/2021 |
1.4.4 | 12,567 | 7/12/2021 |
1.4.3 | 4,968 | 5/6/2021 |
1.4.2 | 2,265 | 4/17/2021 |
1.4.1 | 3,072 | 3/14/2021 |
1.3.5 | 4,334 | 11/13/2020 |
1.3.4 | 3,052 | 9/18/2020 |
1.3.3 | 1,280 | 9/18/2020 |
1.3.2 | 2,141 | 8/2/2020 |
1.3.1 | 1,503 | 7/27/2020 |
1.3.0 | 2,432 | 7/8/2020 |
1.2.6 | 5,599 | 6/26/2019 |
1.2.5 | 1,417 | 6/24/2019 |
1.2.4 | 1,414 | 5/7/2019 |
1.2.3 | 1,518 | 4/23/2019 |
1.2.2 | 1,441 | 4/19/2019 |
1.2.1 | 1,423 | 4/4/2019 |
1.2.0 | 1,435 | 4/4/2019 |
1.1.1 | 1,437 | 3/1/2019 |
1.1.0 | 1,432 | 3/1/2019 |
1.0.4 | 1,431 | 2/26/2019 |
1.0.3 | 1,465 | 2/19/2019 |
1.0.2 | 1,447 | 2/16/2019 |
1.0.1 | 1,492 | 12/20/2018 |
1.0.0 | 1,560 | 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