Skip to content

Lukejkw/Fixer-IO-Sharp

Repository files navigation

#Fixer-IO-Sharp

Build status

Fixer-IO-Sharp is a simple library that allows you to get currency information.

The library is powered by fixer.io and currencies are pulled from the European Central Bank

I offer absolutely no warranty for the data return by the API as the data is not my own.

How to Use the API

Initialize Fixer IO Client

Using the defaults will use Euro as the base currency and will not filter rates

var client = new FixerIOClient();

To change the base currency or filter the symbols, just set the properties.

The below example will set the base currency to US Dollars and will only show rates for Euros and South African Rands

var client = new FixerIOClient()
{
    BaseCurrency = "USD",
    Symbols = new[]{ "EUR", "ZAR" }
};

Get Latest Rates

var result = client.GetLatest();
result.Rates; // Rates (Dictionary<string, decimal>)

Get Rates for a date in history (after 1999)

var result = client.GetRatesForDate(new DateTime(2010, 01, 01));
result.Rates; // Rates (Dictionary<string, decimal>)

Contributions

Please feel free but first read the docs for the API http://fixer.io/ and check Github issues.

Contact Developer

Developed by Luke Warren

Blog at lukewarrendev.co.za

Twitter: @lukejkwarren

About

A simple wrapper for the fixer.io currency API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages