A simple C# wrapper over the https://openexchangerates.org API
- Register on the site and get an API Key
- Install via Nuget
Install-Package OpenExchangeRatesSharp
- Use the API
var client = new RateClient("your_api_key")
var result = client.GetLatest();
var rates = result.Rates; // A dictionary of the rates
If you are using the free account, do not use anything other than the defaults.
This library has not been tested with a paid account but should still work.
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.
<?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