Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExchangeRateSDK

.NET client for exchangerate.dev — indicative FX rates with honest freshness (source, market_session) on every response.

Install

dotnet add package ExchangeRateSDK

Quick start

var settings = new ExchangeRateSettings { /* ApiKey optional */ };
settings.Validate();
var http = new HttpClient();
http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
var api = new ExchangeRateApiClient(http, settings);

var latest = await api.Rates.GetLatestAsync(Currency.USD, Currency.EUR, Currency.GBP);
if (latest.IsSuccess)
{
    Console.WriteLine(latest.Data!.Rates[Currency.EUR]);
}

Rates are indicative only — not for settlement. See docs and CONTEXT.md.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages