Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
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);
}
You can’t perform that action at this time.