FixerIOCore 1.0.6

A wrapper for the fixer.io rates and currency conversion API for .NET Core. http://fixer.io/

Suggested Alternatives

FixerSharp

Install-Package FixerIOCore -Version 1.0.6
dotnet add package FixerIOCore --version 1.0.6
<PackageReference Include="FixerIOCore" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FixerIOCore --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FixerIOCore, 1.0.6"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FixerIOCore as a Cake Addin
#addin nuget:?package=FixerIOCore&version=1.0.6

// Install FixerIOCore as a Cake Tool
#tool nuget:?package=FixerIOCore&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

FixerIoCore

A wrapper for the fixer.io rates and currency conversion API for .NET Core compatible with .NETStandard 1.6+

Install

On Nuget:

PM> Install-Package FixerIoCore

Using

Default values
Currency: EUR
Https: false

var fixerIoClient = new FixerIoClient();

Default currency

var fixerIoClient = new FixerIoClient(Symbol.USD);

Default currency and what quotes should be returned

var fixerIoClient = new FixerIoClient(Symbol.USD, new[] { Symbol.GBP, Symbol.EUR });

Default currency, what quotes should be returned and requests using https

var fixerIoClient = new FixerIoClient(Symbol.USD, new[] { Symbol.GBP, Symbol.EUR }, true);

Get latest rates

var quote = fixerIoClient.GetLatest();

Get historical rates for any day since 1999

var quote = fixerIoClient.GetForDate(new DateTime(2017, 3, 1));

Converting

var quote = fixerIoClient.Convert(Symbol.USD, Symbol.EUR);

or

var quote = fixerIoClient.Convert(Symbol.USD, Symbol.EUR, new DateTime(2017, 3, 1));

All functions have the option of asynchronous call

var quote = await fixerIoClient.ConvertAsync(Symbol.USD, Symbol.EUR);

List of all available currencies

  • AUD
  • BGN
  • BRL
  • CAD
  • CHF
  • CNY
  • CZK
  • DKK
  • EUR
  • GBP
  • HKD
  • HRK
  • HUF
  • IDR
  • ILS
  • INR
  • JPY
  • KRW
  • MXN
  • MYR
  • NOK
  • NZD
  • PHP
  • PLN
  • RON
  • RUB
  • SEK
  • SGD
  • THB
  • TRY
  • USD
  • ZAR

FixerIoCore

A wrapper for the fixer.io rates and currency conversion API for .NET Core compatible with .NETStandard 1.6+

Install

On Nuget:

PM> Install-Package FixerIoCore

Using

Default values
Currency: EUR
Https: false

var fixerIoClient = new FixerIoClient();

Default currency

var fixerIoClient = new FixerIoClient(Symbol.USD);

Default currency and what quotes should be returned

var fixerIoClient = new FixerIoClient(Symbol.USD, new[] { Symbol.GBP, Symbol.EUR });

Default currency, what quotes should be returned and requests using https

var fixerIoClient = new FixerIoClient(Symbol.USD, new[] { Symbol.GBP, Symbol.EUR }, true);

Get latest rates

var quote = fixerIoClient.GetLatest();

Get historical rates for any day since 1999

var quote = fixerIoClient.GetForDate(new DateTime(2017, 3, 1));

Converting

var quote = fixerIoClient.Convert(Symbol.USD, Symbol.EUR);

or

var quote = fixerIoClient.Convert(Symbol.USD, Symbol.EUR, new DateTime(2017, 3, 1));

All functions have the option of asynchronous call

var quote = await fixerIoClient.ConvertAsync(Symbol.USD, Symbol.EUR);

List of all available currencies

  • AUD
  • BGN
  • BRL
  • CAD
  • CHF
  • CNY
  • CZK
  • DKK
  • EUR
  • GBP
  • HKD
  • HRK
  • HUF
  • IDR
  • ILS
  • INR
  • JPY
  • KRW
  • MXN
  • MYR
  • NOK
  • NZD
  • PHP
  • PLN
  • RON
  • RUB
  • SEK
  • SGD
  • THB
  • TRY
  • USD
  • ZAR

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.6 2,675 3/24/2017
1.0.5 604 3/24/2017
1.0.4 614 3/23/2017
1.0.3 782 11/13/2016
1.0.2 708 11/13/2016
1.0.1 610 11/12/2016
1.0.0 678 11/12/2016