CoinGecko.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
.NET implementation | Version Support |
---|---|
.NET Core | 2.0 and higher |
.NET Framework | 4.6.1 and higher |
Mono | 5.4 and higher |
Xamarin.iOS | 10.14 and higher |
Xamarin.Android | 8.0 and higher |
UWP | 10.0.16299 and higher |
Unity | 2018.1 and higher |
Discord
A Discord server is available here. Feel free to join for discussion and/or questions around the CryptoExchange.Net and implementation libraries.
Support the project
DonateMake 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.
Getting Started
The packge is available on Nuget. After installing the package the CoinGecko API is available by using the CoinGeckoRestClient
.
Installation
Add the package via dotnet, or add it via the package manager.
dotnet add package CoinGecko.Net
API Access
CoinGecko.Net can be configured using Dotnet dependency injection, after which the clients can be injected into your services. It also correctly configures logging and HttpClient usage.
builder.Services.AddCoinGecko(options => {
// Options can be configured here
});
The ICoinGeckoRestClient
can then be injected.
Alternatively the rest and socket client can be constructed directly
var restClient = new CoinGeckoRestClient(options => {
// Options can be configured here
});