Skip to content

purkayasta/Fixerr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fixerr - An easy, minimal c# client for Fixer.io

Give it a star if you like the project. 👏 🌠 🌟

Fixer is a popular freemium currency conversion site. Fixerr can help you to transform your currency more faster 😋

Nuget Nuget Nuget Nuget

Nuget

Usage:

Required Properties:

  • ApiKey
  • IsPaidSubscription (If you bought the non free key and want to use https, you may want to set it to true)

With out any dependency injection

var apiKey = "";
IFixerClient fixer = FixerFactory.CreateFixerClient(new HttpClient(), apiKey);
var latest = await fixer.GetFluctuationAsync("2012-05-01", "2012-05-25");
Console.WriteLine(latest?.Rates);

With Microsoft DI

var apiKey = "";
builder.Services.AddFixer(apiKey);

Demo

private readonly IFixerClient _fixerClient;

public YourFunction(IFixerClient fixerClient) => _fixerClient = fixerClient;

public void CallMethod() {
    var latest = await _fixerClient.GetFluctuationAsync("2012-05-01", "2012-05-25");
    // now do whatever 😋
}

F.A.Q:

  • There is also a optional apiKey parameter is added to every method if you need to access different method with different api key. 🎉
  • If anything happens make sure to report using the github issues. Thanks!

Api Cover

  • Latest Endpoint
  • Symbol Endpoint
  • Historic Endpoint
  • Convert Endpoint
  • TimeSeries Endpoint
  • Fluctuation Endpoint