Skip to content

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

varsettings=newExchangeRateSettings{/* ApiKey optional */};settings.Validate();varhttp=newHttpClient();http.DefaultRequestHeaders.Accept.Add(newMediaTypeWithQualityHeaderValue("application/json"));varapi=newExchangeRateApiClient(http,settings);varlatest=awaitapi.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