/OpenExchangeRatesSharp

A simple C# wrapper over the Open Exchange Rates API

Primary LanguageC#MIT LicenseMIT

OpenExchangeRatesSharp

A simple C# wrapper over the https://openexchangerates.org API

Getting Started

  1. Register on the site and get an API Key
  2. Install via Nuget Install-Package OpenExchangeRatesSharp
  3. Use the API

Example Usage:

var client = new RateClient("your_api_key")
var result = client.GetLatest();
var rates = result.Rates; // A dictionary of the rates

Free Account Users

If you are using the free account, do not use anything other than the defaults.

Paid Account Users

This library has not been tested with a paid account but should still work.

Contributers

To run the tests you will need to add an App.config file to the root of the integration test project and then include it.

NOTE Please make sure that this file is excluded when you put in a PR or the CI build will fail

Example

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="api.key" value="your_api_key" />
  </appSettings>
</configuration>

Created by Luke warren. More about me at http://lukewarrendev.co.za