An async-based CryptoCompare API client library for .NET and .NET Core
- .NET Core 1.0
- .NET Framework 4.5
- Mono 4.6
- Xamarin.iOS 10.0
- Xamarin.Android 7.0
- Universal Windows Platform 10
- Windows 8.0
- Windows Phone 8.1
This CryptoCompare api wrapper library is available on NuGet
Package manager
Install-Package CryptoCompare
.NET CLI
dotnet add package CryptoCompare
Paket CLI
paket add CryptoCompare
In order to be able to run some integration tests, you should create a .env
file in the src
folder with the following variables:
CryptoCompareApiConfiguration__ApiKey=********
// Using ctor
var client = new CryptoCompareClient();
var eth = await client.Coins.SnapshotFullAsync(7605);
Console.WriteLine(eth.Data.General.Name);
// Using Singleton
var btc = await CryptoCompareClient.Instance.Coins.SnapshotFullAsync(1182);
Console.WriteLine(eth.Data.General.Name);
monsieurleberre ๐ป |
Anton ๐ป |
cohowap ๐ป |
---|
In order to be able to run some integration tests, you should ensure that you have access to the AWS parameters starting in /CiCd
. In order for the applications in this solution to run correctly on AWS, please ensure that variables starting in /[environment]
are defined for all 3 environments ( Production, Staging, Development ) :
/[environment]/Trakx/CryptoCompare/ApiClient/CryptoCompareApiConfiguration/ApiKey