No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Meziantou.OpenExchangeRatesClient.Tests
Meziantou.OpenExchangeRatesClient
.gitignore
LICENSE
Meziantou.OpenExchangeRatesClient.sln
README.md
pack.cmd

README.md

OpenExchangeRatesClient

OpenExchangeRates API client for .NET.

Nuget: Meziantou.OpenExchangeRatesClient

// using Meziantou.OpenExchangeRates;
using (var client = new OpenExchangeRatesClient())
{
    client.AppId = apiKey; // TODO set your api key
	
    var info = await client.GetUsageAsync();
    Console.WriteLine(info.Usage.RequestsRemaining);
    Console.WriteLine(info.Plan.Name);
    
    var currencies = await client.GetCurrenciesAsync(showAlternative: true);
    var exchangeRates = await client.GetExchangeRatesAsync(showAlternative: true);
    var exchangeRates = await client.GetExchangeRatesAsync(new DateTime(2017, 01, 01), showAlternative: true);
}