Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 786 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 786 Bytes

OpenExchangeRates.NET

.NET client for Open Exchange Rates API

GitHub Nuget

Usage

using var client = new OpenExchangeRatesClient("YOUR_APP_ID");

// convert 1 USD to EUR
var convertResponse = await client.ConvertAsync("USD", "EUR", 1m);

// get all cureencies
var currencies = await client.GetCurrenciesAsync();

// get historical rates
var historicalRatesResponse = await client.GetHistoricalRatesAsync(new DateTime(2020, 06, 01));

// get latest rates
var latestRatesResponse = await client.GetLatestRatesAsync();

// get usage data
var usageData = await client.GetUsageDataAsync();