CoinGecko.Net

May 1, 2026 · View on GitHub

.NET

CoinGecko.Net is a strongly typed client library for accessing the CoinGecko REST API. All data is mapped to readable models and enum values.

Supported Frameworks

The library is targeting both .NET Standard 2.0 and .NET Standard 2.1 for optimal compatibility, as well as dotnet 8.0 and 9.0 to use the latest framework features.

.NET implementationVersion Support
.NET Core2.0 and higher
.NET Framework4.6.1 and higher
Mono5.4 and higher
Xamarin.iOS10.14 and higher
Xamarin.Android8.0 and higher
UWP10.0.16299 and higher
Unity2018.1 and higher

Install the library

NuGet

NuGet version Nuget downloads

dotnet add package CoinGecko.Net

GitHub packages

CoinGecko.Net is available on GitHub packages. You'll need to add https://nuget.pkg.github.com/JKorf/index.json as a NuGet package source.

Download release

GitHub Release

The NuGet package files are added along side the source with the latest GitHub release which can found here.

How to use

REST Endpoints

// Get the ETH price via rest request
var tickerResult = await restClient.Api.GetMarketsAsync("USD");
var lastPrice = tickerResult.Data.Single(x => x.Name == "Ethereum").CurrentPrice;
Console.ReadLine();

For information on the clients, dependency injection, response processing and more see the CoinGecko.Net documentation or have a look at the examples here or here.

CryptoExchange.Net

CoinGecko.Net is based on the CryptoExchange.Net base library. Other exchange API implementations based on the CryptoExchange.Net base library are available and follow the same logic.

CryptoExchange.Net also allows for easy access to different exchange API's.

ExchangeRepositoryNuget
AsterJKorf/Aster.NetNuget version
BinanceJKorf/Binance.NetNuget version
BingXJKorf/BingX.NetNuget version
BitfinexJKorf/Bitfinex.NetNuget version
BitgetJKorf/Bitget.NetNuget version
BitMartJKorf/BitMart.NetNuget version
BitMEXJKorf/BitMEX.NetNuget version
BitstampJKorf/Bitstamp.NetNuget version
BloFinJKorf/BloFin.NetNuget version
BybitJKorf/Bybit.NetNuget version
CoinbaseJKorf/Coinbase.NetNuget version
CoinExJKorf/CoinEx.NetNuget version
CoinWJKorf/CoinW.NetNuget version
Crypto.comJKorf/CryptoCom.NetNuget version
DeepCoinJKorf/DeepCoin.NetNuget version
Gate.ioJKorf/GateIo.NetNuget version
HTXJKorf/HTX.NetNuget version
HyperLiquidJKorf/HyperLiquid.NetNuget version
KrakenJKorf/Kraken.NetNuget version
KucoinJKorf/Kucoin.NetNuget version
MexcJKorf/Mexc.NetNuget version
OKXJKorf/OKX.NetNuget version
PolymarketJKorf/Polymarket.NetNuget version
ToobitJKorf/Toobit.NetNuget version
UpbitJKorf/Upbit.NetNuget version
WeexJKorf/Weex.NetNuget version
WhiteBitJKorf/WhiteBit.NetNuget version
XTJKorf/XT.NetNuget version

Discord

Nuget version
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.

Supported functionality

Note that only the public endpoints are supported, but setting API key is supported and the correct API urls will be selected.

V3 API

APISupportedLocation
PingrestClient.Api
KeyrestClient.Api
SimplerestClient.Api
CoinsrestClient.Api
ContractrestClient.Api
Asset PlatformsrestClient.Api
CategoriesrestClient.Api
ExchangesrestClient.Api
DerivativesrestClient.Api
NftsrestClient.Api
Exchange RatesrestClient.Api
SearchrestClient.Api
TrendingrestClient.Api
GlobalrestClient.Api
CompaniesrestClient.Api

Support the project

Any support is greatly appreciated.

Make a one time donation in a crypto currency of your choice. If you prefer to donate a currency not listed here please contact me.

Btc: bc1q277a5n54s2l2mzlu778ef7lpkwhjhyvghuv8qf
Eth: 0xcb1b63aCF9fef2755eBf4a0506250074496Ad5b7
USDT (TRX) TKigKeJPXZYyMVDgMyXxMf17MWYia92Rjd

Alternatively, sponsor me on Github using Github Sponsors.

Release notes